0x00 问题描述
今天在跑程序的时候,突然曝出了下面的错误,
This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".
Reinstalling the application may fix this problem.
detect_evaluation-Dataset.sh: line 21: 17306 Aborted (core dumped)
在网上找了好多教程,其中最经典的就是盼小辉的,但是却解决不了我的问题。
0x01 解决思路
- 要想解决这个问题,就要分析为什么我用盼小辉的那个解决方法为什么不成功?
细细分析发现两者的区别,他的是安装了QT程序,而我只是用到了qt的一个python库。因此我重新安装一下qt包就解决了
0x02 具体步骤
-
卸载python环境中的qt包
pip uninstall qt
-
重新安装qt包
pip install qt
0x03 一些闲话
本人创建了一个公众号,分享科研路上的小问题,新发现,欢迎关注公众号,给我留言!!!
一起奋发向上,攻克难题吧~~