有关 qt xcb的报错问题

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的插件很多,不知道装哪个 我是连接服务器做的,请问如何解决?

你这个报错实在什么环境下的

不知道你这个问题是否已经解决, 如果还没有解决的话:

如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^