我对 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 doctor 所建议的那样),但是当我去编辑我的 ~/.profile (到目前为止,我已经收集到我应该从我在网上找到的内容),它不起作用。
谢谢您的帮助!