安裝 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 庫就可以了。