我有一个项目要做在学校,使用Python。我必须制作一个GUI,所以我选择通过PySide2使用Qt。在Windows上,一切都可以毫无问题地运行。但是当我尝试在 Debian 上运行我的项目时,我遇到了这个问题:
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
No protocol specified
qt.qpa.xcb: could not connect to display :0
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.
我在互联网上搜索了一个解决方案,但没有任何东西对我有用。我在 Debian 10 上使用 Python3.7 和 PySide2(随 一起安装)。pip
翻过高山走不出你
相关分类