2014-12-07 54 views
0

现在即时通讯使用OS X Yosemite和尝试通过pip在我virtuaenv几包安装:的wxPython和OS的virtualenv X

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

只要使用此:

brew install python --framework 
    brew install wxPython 

2)制作的virtualenv当你想

3)转到您的站点包目录在你的virtualenv并添加:

1)通过BREW安装符号链接:

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