2012-06-11 60 views
0

我對Python很陌生,使用終端,並且在下載wxpython時遇到了很多麻煩。我使用的是最新版本的Mac OS X Lion,我嘗試了兩種方法:無法下載wxpthon

如果我嘗試從他們的網站下載wxpython,我會瀏覽整個安裝過程並說明它已安裝但後來我無法在電腦上找到它。當我去運行單獨安裝的演示程序時,它說在我的電腦上沒有名爲wxpython的模塊。 於是我轉向其他方法......

如果我嘗試須藤PIP安裝wxPython中,我得到:

Downloading/unpacking wxpython 
     Downloading wxPython2.8-win64-devel-2.8.12.1-msvc9x64.tar.bz2 (7.2Mb): 7.2Mb downloaded 
     Running setup.py egg_info for package wxpython 
     Traceback (most recent call last): 
      File "<string>", line 14, in <module> 
     IOError: [Errno 2] No such file or directory: '/Users/michelletyler1/build/wxpython/setup.py' 
     Complete output from command python setup.py egg_info: 
     Traceback (most recent call last): 

     File "<string>", line 14, in <module> 

    IOError: [Errno 2] No such file or directory: '/Users/michelletyler1/build/wxpython/setup.py' 

我也嘗試須藤口安裝py27-wxPython的安裝使用MacPorts後,找來:

---> Computing dependencies for py27-wxpython 
    ---> Building py27-wxpython 
    Error: org.macports.build for port py27-wxpython returned: command execution failed 
    Please see the log file for port py27-wxpython for details: 
     /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-wxpython/py27-wxpython/main.log 
    To report a bug, follow the instructions in the guide: 
     http://guide.macports.org/#project.tickets 
    Error: Processing of port py27-wxpython failed 

什麼可能是錯誤的?我一直在試圖弄清楚如何改變我的$ PATH,以便/ usr/local/bin在/ usr/bin之前(由brew醫生建議),但是當我去編輯我的〜/ .profile(我已經收集到的,我應該從我在網上找到的東西上完成),但它不起作用。

感謝您的幫助!

回答

0

從我所瞭解的情況來看,您不希望對預裝的Python安裝wxPython。相反,您需要訪問www.python.org並安裝新的Mac兼容Python。然後你可以下載你想要的wxPython,並將它安裝在新鮮的Python上。順便說一下,wxPython不支持easy_install或pip。