qt.qpa.xcb: could not connect to display

一时疏忽,直接在xshell远程桌面运行pyqt程序了,报了此错误

(wind_2022) admin-01@admin-01:~/Anaconda3/project_liao_20220523$
(wind_2022) admin-01@admin-01:~/Anaconda3/project_liao_20220523$ python vc_main.py
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" 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: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

已放弃 (核心已转储)
(wind_2022) admin-01@admin-01:~/Anaconda3/project_liao_20220523$

 

因为远程桌面没法显示pyqt窗口

 

 

##############################

posted @ 2022-06-11 23:25  西北逍遥  阅读(4843)  评论(1编辑  收藏  举报