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*
相关推荐
翻滚吧键盘2 分钟前
opensuse tumbleweed上安装显卡驱动
linux
cui_win1 小时前
【内存】Linux 内核优化实战 - net.ipv4.tcp_tw_reuse
linux·网络·tcp/ip
Tipriest_1 小时前
Python关键字梳理
python·关键字·keyword
im_AMBER2 小时前
学习日志05 python
python·学习
大虫小呓2 小时前
Python 处理 Excel 数据 pandas 和 openpyxl 哪家强?
python·pandas
BD_Marathon3 小时前
Ubuntu:Mysql服务器
服务器·mysql·ubuntu
哪 吒3 小时前
2025B卷 - 华为OD机试七日集训第5期 - 按算法分类,由易到难,循序渐进,玩转OD(Python/JS/C/C++)
python·算法·华为od·华为od机试·2025b卷
摸爬滚打李上进4 小时前
重生学AI第十六集:线性层nn.Linear
人工智能·pytorch·python·神经网络·机器学习
CodeWithMe4 小时前
【Note】《深入理解Linux内核》 Chapter 15 :深入理解 Linux 页缓存
linux·spring·缓存
0wioiw04 小时前
Ubuntu基础(监控重启和查找程序)
linux·服务器·ubuntu