当运行easy_install PIL时,我收到错误:安装脚本退出并显示错误:命令'cc'失败,退出状态为1

时间:2015-01-20 04:07:32

标签: python easy-install

我的系统环境是:    MAC:OS X YOSEMITE 10.10.1  XCODE:版本6.1.1(6A2008a) Python:2.7.6

当我运行“sudo easy_install PIL”时,我收到了一个错误:

error: Setup script exited with error: command 'cc' failed with exit status 1

有什么解决方案吗? 谢谢!

1 个答案:

答案 0 :(得分:3)

您缺少xcode的命令行工具。从终端提示符中键入xcode-select --install