admin管理员组

文章数量:1123003

Available platform plugins are: xcb, eglfs, linuxfb, minimal, minimalegl, of

pycharm使用pyqt5

错误 :

Available platform plugins are: xcb, eglfs, linuxfb, minimal, minimalegl, of

解决办法

开头加入

envpath = '/data/xx/xx/venv/lib/python3.6/site-packages/cv2/qt/plugins/platforms'
os.environ['QT_QPA_PLATFORM_PLUGIN_PATH'] = envpath


亲测可用

参考:

本文标签: