【解决方法】Setup script exited with error: command 'cc' failed with exit status 1

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/zhyl8157121/article/details/48848085

安装 Python 库的时候报错

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

环境

  • Mac OSX 10.10.5
  • Python 2.7

错误分析

缺少 Xcode commandline tool

解决方法

在 terminal 里面输入 xcode-select –install,弹出框选择安装 commandline tool,安装完成之后再安装 python 库就可以了。

猜你喜欢

转载自blog.csdn.net/zhyl8157121/article/details/48848085