Fay
Fay copied to clipboard
执行python main.py报如下错误
[root@localhost Fay-main]# python3 main.py pygame 2.1.3 (SDL 2.0.22, Python 3.11.4) Hello from the pygame community. https://www.pygame.org/contribute.html QObject::moveToThread: Current thread (0x2839a90) is not the object's thread (0x967ce30). Cannot move to target thread (0x2839a90)
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/usr/local/Python-3.11.4/lib/python3.11/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.
pip install opencv-python==4.1.2.30 降低opencv版本可以解决