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

Logo

一站式虚拟内容创作平台,激发创意,赋能创作,进入R空间,遇见同道,让优质作品闪耀发光。​

更多推荐