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*
相关推荐
穷人小水滴几秒前
在 windows 运行 flatpak 应用 (WSL)
linux·windows·ubuntu
一只拉古29 分钟前
DevOps 的 Linux 基础(第一部分)
linux·自动化运维·devops
mit6.82443 分钟前
ubuntu远程桌面很卡怎么解决?
linux·ubuntu·php
飞鸟真人1 小时前
linux下用c++11写一个UDP回显程序
linux·udp·即时通信
跟橙姐学代码1 小时前
学Python像学做人:从基础语法到人生哲理的成长之路
前端·python
Keying,,,,1 小时前
力扣hot100 | 矩阵 | 73. 矩阵置零、54. 螺旋矩阵、48. 旋转图像、240. 搜索二维矩阵 II
python·算法·leetcode·矩阵
桃源学社(接毕设)2 小时前
基于人工智能和物联网融合跌倒监控系统(LW+源码+讲解+部署)
人工智能·python·单片机·yolov8
朱颜辞镜花辞树‎2 小时前
关于 Linux 内存管理
linux
yunhuibin2 小时前
pycharm2025导入anaconda创建的各个AI环境
人工智能·python
杨荧2 小时前
基于Python的电影评论数据分析系统 Python+Django+Vue.js
大数据·前端·vue.js·python