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

2024-09-26 22:13:24 发布

您现在位置:Python中文网/ 问答频道 /正文

所以运行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)。我现在收到一条新的错误消息:

^{pr2}$

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


Tags: theto应用程序消息application版本号错误plugins

热门问题