由于以下错误,我无法使用easy_insall
or安装任何 Python 包。pip
我到处寻找,看到了这个错误的几种变体,但还没有找到易于理解/遵循的解决方案。任何帮助深表感谢!
我在 Mac OS 10.8.1 上运行
Python 版本 2.7.3
Xcode 4.5.2 版(安装了命令行工具)
...如果您需要更多信息来找出问题所在,请询问!
$ easy_install pil
Searching for pil
Reading http://pypi.python.org/simple/pil/
Reading http://www.pythonware.com/products/pil
Reading http://effbot.org/zone/pil-changes-115.htm
Reading http://effbot.org/downloads/#Imaging
Best match: PIL 1.1.7
Downloading http://effbot.org/media/downloads/PIL-1.1.7.tar.gz
Processing PIL-1.1.7.tar.gz
Writing /var/folders/9q/bvqtzkbx1hg1934b36zgk0y40000gn/T/easy_install-wfZs_Y/PIL-1.1.7/setup.cfg
Running PIL-1.1.7/setup.py -q bdist_egg --dist-dir /var/folders/9q/bvqtzkbx1hg1934b36zgk0y40000gn/T/easy_install-wfZs_Y/PIL-1.1.7/egg-dist-tmp-DXWOmC
WARNING: '' not a valid package name; please use only.-separated package names in setup.py
--- using frameworks at /System/Library/Frameworks
unable to execute gcc-4.0: No such file or directory
error: Setup script exited with error: command 'gcc-4.0' failed with exit status 1
不确定这是否有帮助,但是当我运行时sudo port select --list gcc
,我得到以下信息:
Available versions for gcc:
llvm-gcc42
mp-gcc45
none (active)