“No display name” error when launching idle in cygwin

本小妞迷上赌 提交于 2019-12-07 17:27:55

问题


I am getting a "Tlc error: no display name...etc" when I try to open python scripts in idle using Cygwin. I type the following:

idle python_script.py

Do I need to install another Cygwin package to make this work? Windows 7- recently installed. Thanks!!:)


回答1:


The error means that the program cannot find a display to show the window on. To solve that you need to install X Windows system and then set the display environment variable to:

export DISPLAY=:0.0

See this answer for more details: https://stackoverflow.com/a/9418800/342473



来源:https://stackoverflow.com/questions/24845812/no-display-name-error-when-launching-idle-in-cygwin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!