现在我正在使用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。
答案 0 :(得分:0)
请使用:
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* .