【问题标题】:when running easy_install PIL, I got the error: Setup script exited with error: command 'cc' failed with exit status 1运行 easy_install PIL 时,出现错误:安装脚本退出并出现错误:命令 'cc' failed with exit status 1
【发布时间】:2015-01-20 04:07:31
【问题描述】:

我的系统环境是: 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

对此有什么解决办法吗? 谢谢!

【问题讨论】:

    标签: python easy-install


    【解决方案1】:

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

    【讨论】:

    • 太棒了!我尝试了很多方法来解决它,错误都对我不起作用!你的方法对我有用!非常感谢!
    猜你喜欢
    • 2014-05-07
    • 1970-01-01
    • 2011-06-10
    • 2011-08-20
    • 1970-01-01
    • 2020-04-23
    • 2015-07-17
    • 2023-03-14
    相关资源
    最近更新 更多