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* .