我不能使用easy_insall或pip安装任何Python包,因为出现以下错误。我到处找遍了,看到了这个错误的几种变体,但没有找到一个易于理解/遵循的解决方案。非常感谢任何帮助!在
我在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时,我得到以下结果:
^{pr2}$