Terminal 下载wxpthon时出现问题

Terminal 下载wxpthon时出现问题,terminal,wxpython,osx-lion,Terminal,Wxpython,Osx Lion,我对Python和使用终端非常陌生,下载wxpython时遇到很多麻烦。我正在使用Mac OS X Lion,这是最新版本,我尝试了两种方法: 如果我试着从他们的网站上下载wxpython,我会经历整个安装过程,它说它已经安装好了,但是我在我的电脑上找不到它。当我去运行单独安装的演示时,它说在我的计算机上没有名为wxpython的模块。 所以我转向其他方法 如果我尝试sudo pip安装wxpython,我会得到: Downloading/unpacking wxpython

我对Python和使用终端非常陌生,下载wxpython时遇到很多麻烦。我正在使用Mac OS X Lion,这是最新版本,我尝试了两种方法:

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

如果我尝试sudo 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'
有什么不对劲

此外,我一直在试图找出如何更改我的$PATH,以便按照brew doctor的建议/usr/local/bin位于/usr/bin之前,但当我去编辑我的~/.profile时,我收集到的内容是我根据目前在线发现的内容应该做的,它不起作用


谢谢你的帮助

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

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