solved: Could not load the Qt platform plugin “xcb“

传送门

1

export QT_QPA_PLATFORM=offscreen
或者

import os
os.environ.pop("QT_QPA_PLATFORM_PLUGIN_PATH")

2

pip uninstall opencv-python
pip install opencv-python-headless

你可能感兴趣的:(qt,开发语言)