簡體   English   中英

OS X上的wxPython和virtualenv

[英]wxPython and virtualenv on OS X

現在,我使用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。

只需使用此:

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM