所以运行PyQt5应用程序对PyCharm来说没有问题。但是,尝试调试它时,我收到以下错误消息:
Connected to pydev debugger (build 191.7479.30)
This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.
Reinstalling the application may fix this problem.
我设法找到一些随机的中文帖子,说了一些关于指定QT_QPA_PLATFORM_PLUGIN_PATH
的内容,因此我将其设置为~/.local/lib/python3.6/site-packages/PyQt5/Qt/plugins
(我使用的是python3.6)。我现在收到一条新的错误消息:
我尝试升级我的PyQt5包,但是仍然收到相同的错误(但是现在第一个版本号大于第二个版本号)。我需要升级PyQt5库吗?我该怎么做?在
目前没有回答
相关问题 更多 >
编程相关推荐