python debug报错:Could not load the Qt platform plugin “xcb“in“./plugins/platforms“的解决方法
问题描述
在使用pycharm 进行debug的时候,一直报错
![在这里插入图片描述](https://img-blog.csdnimg.cn/803ae6615f944d4cac38b45bbd091960.png)
如上图所示提示重新安装pyqt,尝试过并没有用
解决方法
pip list
查看下是否安装多个pyqt。
- 我这边查看到安装了PyQt5-Qt5 和PyQt5-sip
- 卸载PyQt5-Qt5
pip uninstall PyQt5-Qt5
debug就可以正常运行啦!!!!!