Qt报错解决办法

anaconda环境安装qt报错解决办法

报错:thresholdGap: 20 pointsShape: 164142
qt.qpa.plugin: Could not find the Qt platform plugin “wayland” in “/home/tianhailong/anaconda3/envs/edge_algorithm/lib/python3.8/site-packages/cv2/qt/plugins”
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: xcb.
解决办法:

udo apt-get install libxcb-xinerama0
pip install PyQt5 --force-reinstall
export QT_QPA_PLATFORM=xcb
set QT_QPA_PLATFORM=xcb

猜你喜欢

转载自blog.csdn.net/m0_47405013/article/details/131738741