qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/root/.local/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.
python运行报qt插件错误,导致cv2.imshow("img", img)无法显示,重新装过了opencv ,版本契合我目前的python版本,有关pyqt的插件很多,不知道装哪个 我是连接服务器做的,请问如何解决?