Python 2.7 在cygwin中启动anaconda spyder gui
我正在使用cygwin将windows 7计算机连接到基于linux的群集。在集群中的特定节点中,我想启动anaconda spyder gui 要启动spyder,只需键入:Python 2.7 在cygwin中启动anaconda spyder gui,python-2.7,cygwin,cluster-computing,anaconda,Python 2.7,Cygwin,Cluster Computing,Anaconda,我正在使用cygwin将windows 7计算机连接到基于linux的群集。在集群中的特定节点中,我想启动anaconda spyder gui 要启动spyder,只需键入: spyder进入cygwin 但结果是: QXcbConnection: Could not connect to display Aborted (core dumped) QFontDatabase: Cannot find font directory /home/spotter/anaconda2/lib/fo
spyder
进入cygwin
但结果是:
QXcbConnection: Could not connect to display
Aborted (core dumped)
QFontDatabase: Cannot find font directory /home/spotter/anaconda2/lib/fonts - is Qt installed correctly?
我还尝试:
QTA_QPA_PLATFORM=offscreen spyder
但结果是:
QXcbConnection: Could not connect to display
Aborted (core dumped)
QFontDatabase: Cannot find font directory /home/spotter/anaconda2/lib/fonts - is Qt installed correctly?
我安装了qt4开发工具,但它没有改变任何东西
编辑:
我安装了xinit和xorg,现在我尝试以下方法:
在使用ssh登录之前,我运行:
export DISPLAY=localhost:0.0
然后我使用ssh登录:
ssh -Y -X usrname@machine
现在,当我尝试使用spyder
时,我得到:
connect localhost port 6000: Connection refused
QXcbConnection: Could not connect to display localhost:11.0
对我来说,我所做的是:
export DISPLAY=localhost:0.0
startx
ssh-Y-X登录username@machine
spyder
因此,听起来您正在本地Windows计算机上运行Cygwin,使用
ssh
登录远程服务器,并从该计算机上运行spyder
,目的是让它显示在本地屏幕上。现在您已经有了startx
工作,您就接近解决方案了
在步骤5和6之间,您需要在远程计算机上运行导出显示
命令,并将其设置为本地计算机的名称。为此,您需要知道您的主机名。步骤如下所示:
startx
ssh -Y -X username@machine
export DISPLAY=win-machine-name:0.0
spyder
最后两个命令在远程计算机上执行。我刚刚编好了赢机器名
。在它的位置上,您将放置windows计算机的IP地址或计算机名。这就是告诉您如何在远程机器上设置显示
环境变量,以便X
客户端知道将图形命令发送到何处
希望这有帮助