报错 qt.qpa.plugin: Could not load the Qt platform plugin “xcb“ in ““ even though it was found

发布时间 2023-04-01 09:24:53作者: Death_Knight

参考:

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

 

 

 

========================================