ubuntu新安装gnome-desktop后运行pyside6/pyqt5程序报错

bash 复制代码
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: offscreen, vkkhrdisplay, eglfs, wayland, linuxfb, vnc, minimalegl, xcb, wayland-egl, minimal.

解决方案:

bash 复制代码
~$ export QT_DEBUG_PLUGINS=1
~$ sudo apt-get install libxcb* libxkbcommon*
相关推荐
230万光年的思念9 分钟前
【无标题】
python
hy____1239 分钟前
Linux_进程间通信
linux·运维·服务器
shengli72214 分钟前
机器学习与人工智能
jvm·数据库·python
2301_7657031423 分钟前
Python迭代器(Iterator)揭秘:for循环背后的故事
jvm·数据库·python
郭涤生29 分钟前
C++的函数是否可以做到完全覆盖Linux和windows的跨平台
linux·c++·windows
追风少年ii42 分钟前
多组学扩展---分子对接pyrosetta
python·数据分析·空间·单细胞
南宫码农1 小时前
神马影视8.5版本如意伪静态+视频教程
linux·运维·centos
2301_821369611 小时前
使用Python进行图像识别:CNN卷积神经网络实战
jvm·数据库·python
m0_561359671 小时前
使用Kivy开发跨平台的移动应用
jvm·数据库·python
坐怀不乱杯魂1 小时前
Linux网络 - 网络层
linux·服务器·网络