【环境配置】opencv xcb报错

问题

Could not load the Qt platform plugin "xcb" in "/home/<username>/miniconda3/envs/test/lib/python3.8/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.

Available platform plugins are: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl.

解决方案

pip3 install opencv-python-headless

参考引用

Solutions to possible problems

猜你喜欢

转载自blog.csdn.net/zhoujinwang/article/details/131574144
今日推荐