WIN10 的 WSL 装的 Ubuntu,安装了 anaconda3 和 thonny,想启动 thonny 作为 pythonIDE,提示 _tkinter.tclerror:no display name and no DISPLAY environment variable
请教怎么解决?
WIN10 的 WSL 装的 Ubuntu,安装了 anaconda3 和 thonny,想启动 thonny 作为 pythonIDE,提示 _tkinter.tclerror:no display name and no DISPLAY environment variable
请教怎么解决?
|
RheinmetalOct 24, 2019
1
|
|
SilencerLOct 24, 2019
2
这报错主要是因为 WSL 的确没有图形界面(吧)
给 WSL 装个 X Server 试试(网上相关信息) |
|
ClericPyOct 24, 2019
3
基本别指望了, 这就跟 Ubuntu server 上启动个非 headless 的 chrome 一样烦, 要开虚拟显示器, 然后让 GUI 程序投射到这个虚拟显示器里...
|
|
silkriverOct 24, 2019
4
|
|
okou19900722Oct 25, 2019
5
另一种方案,vscode 插件支持访问 wsl
https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-wsl |
|
aa6563679Oct 25, 2019
6
没那么麻烦。
装一个 MobaXterm,自带 X Server,用 MobaXterm 里的 WSL 就能启动各种 GUI 软件 MobaXterm 也能启动服务器上的 GUI 软件 |