安装 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 库就可以了。