尝试安装wxpython,但无论我怎么做都有多个错误[重复]


0

可能重复:
通过pip或easy_install安装wxpython

我是Python的新手并使用终端,我在下载wxpython时遇到了很多麻烦。我正在使用最新版本的Mac OS X Lion,我尝试了两种方法:

  1. 如果我尝试sudo pip install 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'
    
  2. 安装MacPorts后我也试过sudo port install py27-wxpython,得到了:

    --->  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_tarbal        ls_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时(我收集的内容,我应该根据我迄今为止在网上找到的内容),它不起作用。

谢谢您的帮助!


你有没有 .bash_profile 文件也是?如果存在, .profile 永远不会读。所以你需要编辑前者。另外,你的日志是什么? port install 命令说?请注意,您最好不要同时使用Homebrew和MacPorts。 brew doctor 应该告诉你的。
slhck

Answers:


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.