推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
oldbird
V2EX  ›  Python

WSL 中如何启动 Python 编辑器的 GUI?

  •  
  •   oldbird · Oct 24, 2019 · 5073 views
    This topic created in 2529 days ago, the information mentioned may be changed or developed.

    WIN10 的 WSL 装的 Ubuntu,安装了 anaconda3 和 thonny,想启动 thonny 作为 pythonIDE,提示 _tkinter.tclerror:no display name and no DISPLAY environment variable

    请教怎么解决?

    6 replies  •  2019-10-25 10:45:05 +08:00
    Rheinmetal
        1
    Rheinmetal  
       Oct 24, 2019
    SilencerL
        2
    SilencerL  
       Oct 24, 2019
    这报错主要是因为 WSL 的确没有图形界面(吧)
    给 WSL 装个 X Server 试试(网上相关信息)
    ClericPy
        3
    ClericPy  
       Oct 24, 2019
    基本别指望了, 这就跟 Ubuntu server 上启动个非 headless 的 chrome 一样烦, 要开虚拟显示器, 然后让 GUI 程序投射到这个虚拟显示器里...
    silkriver
        4
    silkriver  
       Oct 24, 2019
    okou19900722
        5
    okou19900722  
       Oct 25, 2019
    aa6563679
        6
    aa6563679  
       Oct 25, 2019
    没那么麻烦。
    装一个 MobaXterm,自带 X Server,用 MobaXterm 里的 WSL 就能启动各种 GUI 软件
    MobaXterm 也能启动服务器上的 GUI 软件
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2718 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 07:48 · PVG 15:48 · LAX 00:48 · JFK 03:48
    ♥ Do have faith in what you're doing.