直接说结果:
在复制命令echo $DISPLAY输出的时候前后多了空格
箭头指示的位置有空格都会导致报错
PyCharm远程SSH在尝试用imshow可视化的时候报错:
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/xxx/anaconda3/envs/env_x/lib/python3.6/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.
一般都是在mobaXterm中 echo $DISPLAY 然后将返回的结果在PyCharm中配置好环境变量
然后在选择复制的时候很容易前面或者后面留空格,导致报错,然后在排除的时候根本找不到原因....
还是推荐直接手打localhost:xx
今天又遇到了这个问题,重启mobaXterm解决了