在运行mmdetection的时候发现qt5里面缺了啥
qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in “…”
卸载了好多Qt5 重新安装,都没有用
尝试1:
sudo gedit ~/.bashrc
最后一行加上
export QT_DEBUG_PLUGINS=1
对于我来说,没有效果
尝试2:
卸载qt5,重新安装,没啥用
解决方案
在虚拟环境中重新装opencv, 对于我来说使用
链接
https://askubuntu.com/questions/1310286/qt-qpa-plugin-could-not-load-the-qt-platform-plugin-xcb-in-even-though-it
export DISPLAY=:1.0
pip install opencv-python==4.3.0.36