无法下载wxpython

时间:2012-06-11 16:13:55

标签: terminal wxpython osx-lion

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

如果我尝试简单地从他们的网站上下载wxpython,我会完成整个安装过程并说它已经安装但我在计算机上找不到它。当我去运行单独安装的演示时,它说我的计算机上没有名为wxpython的模块。 所以我转向其他方法......

如果我尝试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'

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

感谢您的帮助!

1 个答案:

答案 0 :(得分:0)

据我所知,您不希望针对预安装的Python安装wxPython。相反,您需要访问www.python.org并安装新的Mac兼容Python。然后你可以下载你想要的wxPython并用你的新Python安装它。顺便说一句,wxPython不支持easy_install或pip。