推荐学习书目
› 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
displayabc
V2EX  ›  Python

virtualenv 下使用 wxPython 就没成功过。。。

  •  
  •   displayabc · Jan 20, 2015 · 4433 views
    This topic created in 4265 days ago, the information mentioned may be changed or developed.
    以前不用virtualenv的时候挺好弄的,现在用了,运行不了
    This program needs access to the screen.
    Please run with a Framework build of python, and only when you are
    logged in on the main display of your Mac.

    按照http://wiki.wxpython.org/wxPythonVirtualenvOnMac 这个弄过,不管用。。

    求大神
    Supplement 1  ·  Jan 21, 2015
    mac系统,本身有一个python,用brew又安装了一个,virtualenv用的是新安装的那个,wxpython也是安装在这个python中的,如果我不切换到virtualenv里,直接用新安装的那个python执行wx的脚本是可以用的
    1 replies  •  2015-01-20 23:25:02 +08:00
    sivacohan
        1
    sivacohan  
       Jan 20, 2015 via Android   ❤️ 1
    没玩过这个库。
    不过看你这个情况,在linux下应该
    export display=:1

    全凭记忆。和谐是给屏幕设定一个环境变量。不然程序找不到display
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2566 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 02:18 · PVG 10:18 · LAX 19:18 · JFK 22:18
    ♥ Do have faith in what you're doing.