【问题标题】:wxPython and virtualenv on OS XOS X 上的 wxPython 和 virtualenv
【发布时间】:2014-12-07 11:52:55
【问题描述】:

现在我正在使用 OS X Yosemite 并尝试通过 pip 在我的 virtuaenv 中安装几个软件包:

relrin at MacBook-Relrin in ~ 
=> cd code/Helenae/

relrin at MacBook-Relrin in ~/code/Helenae 
=> source bin/activate

relrin at MacBook-Relrin in ~/code/Helenae workon code 
=> pip install wxPython wxPython-common
Downloading/unpacking wxPython
  Could not find any downloads that satisfy the requirement wxPython
  Some externally hosted files were ignored (use --allow-external wxPython to allow).
Cleaning up...
No distributions at all found for wxPython
Storing debug log for failure in /Users/savicvalera/.pip/pip.log

relrin at MacBook-Relrin in ~/code/Helenae exited 1 workon code 
=> pip install --allow-external wxPython wxPython-common
Downloading/unpacking wxPython-common
  Could not find any downloads that satisfy the requirement wxPython-common
  Some externally hosted files were ignored (use --allow-external wxPython-common to allow).
Cleaning up...
No distributions at all found for wxPython-common
Storing debug log for failure in /Users/savicvalera/.pip/pip.log

几分钟前尝试通过 brew 安装:

brew install wxPython

但不是安装在virtualenv中,而是安装在主用户目录中。 我怎样才能解决这个问题?原因 wxPyWiki 现在无法正常工作,我无法查看文档,如何使用 virtualenv 和 wxPython。

【问题讨论】:

    标签: python python-2.7 wxpython pip virtualenv


    【解决方案1】:

    就用这个吧:

    1) 通过 brew 安装:

       brew install python --framework
       brew install wxPython
    

    2) 根据需要制作 virtualenv

    3) 转到您的 virtualenv 中的 site-packages 目录并添加符号链接:

    cd <there your path to lib/python2.7/site-packages/ in virtualenv>
    ln -s /usr/local/lib/python2.7/site-packages/wx* .
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-05-10
      • 1970-01-01
      • 2014-12-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多