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

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章