报错 qt.qpa.plugin: Could not load the Qt platform plugin “xcb“ in ““ even though it was found
参考:
https://blog.csdn.net/qq_39938666/article/details/120452028
==========================================
使用ubuntu系统下python的seaborn模块画图,报错:
qt.qpa.plugin: Could not load the Qt platform plugin “xcb“ in ““ even though it was found
在网上搜索资料,发现是Qt加载插件出现问题,通过在终端中通过设置QT_DEBUG_PLUGINS=1,可以查看Qt的插件加载信息。
export QT_DEBUG_PLUGINS=1
再次运行之前的报错代码,会显示出调试信息,根据其中的报错信息对缺失的组件进行安装。
本人安装的缺失组件:
sudo apt install libxcb-icccm4-dev
sudo apt install libxcb-render-util0-dev
sudo apt install libxcb-render0-dev
sudo apt install libxcb-keysyms1-dev
sudo apt install libxcb-image0-dev
sudo apt install libxcursor-dev
sudo apt install libgl1-mesa-glx
sudo apt install mesa-utils
sudo apt install mesa-common-dev
sudo apt install mesa-opencl-icd
========================================
posted on 2023-04-01 09:18 Angry_Panda 阅读(4455) 评论(0) 收藏 举报
浙公网安备 33010602011771号