Steven10010 2021-11-01 16:33 采纳率: 50%
浏览 30

运行程序出现这个提示,应该怎么解决?

本级系统:ubuntu 20.04
compaq电脑cq40



import numpy as np
import matplotlib.pyplot as mp

x=np.array([1,2,3,4,5,6])
y=np.array([28,83,91,45,32,12])
mp.plot(x, y)
mp.show()


qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

  • 写回答

1条回答 默认 最新

报告相同问题?

问题事件

  • 创建了问题 11月1日