mac无法下载python_无法在Mac上安装Python包(gcc4.0错误)

我不能使用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}$

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值