1.版本问题(高版本和低版本之间的程序包改动)
比如出现如下bug:
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/xiefei/anaconda3/envs/pytorch-openpose/lib/python3.7/site-packages/cv2/qt/plugins" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.这就是版本问题,当前版本4.4,属于Qt里面没有xcb,无法初始化。怎么办?
先conda list ,查询opencv-python版本,卸载当前版本,终端输入pip uninstall opencv-python
再安装低版本opencv-python,pip install opencv-python==4.1.0.25