无法使用PyCharm调试PyQt5应用程序

时间:2019-06-03 12:08:41

标签: python pyqt pycharm pyqt5

因此,运行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(我正在使用python 3.6)。现在,我收到一条新的错误消息:

Connected to pydev debugger (build 191.7479.30)
Cannot mix incompatible Qt library (version 0x50a01) with this library (version 0x50c02)

Process finished with exit code 134 (interrupted by signal 6: SIGABRT)

我尝试升级PyQt5软件包,但一直收到相同的错误(但现在第一个版本号大于第二个版本号)。我需要升级PyQt5库吗?我该怎么做?

0 个答案:

没有答案