(最新+详细+Pycharm远程调试GUI程序)解决qt.qpa.xcb: could not connect to display问题
出现原因
在ubuntu服务器上运行cv.imshow()方法时就会报以下错误
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/root/anaconda3/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, minimal, minimalegl, offscreen, vnc
解决方法
因为用的是云服务器,我也不能去他那里外接个显示器,而且我也是没有装图形化界面的,如果有图形化界面可以使用vnc连接就解决了,我不想装图形化界面就打算使用MobaXTerm来使远程服务器的显示内容显示到本地windows上。
步骤
下载MobaXTerm
MobaXTerm内置了X server,在服务器上的图形化应用可以在本地轻松展示。

解决qt.qpa.xcb: could not connect to display问题&spm=1001.2101.3001.5002&articleId=127935439&d=1&t=3&u=524bf922acb94f9f84561744652ec7be)
3406

被折叠的 条评论
为什么被折叠?



