安装matplotlib

来源:互联网 发布:快速瘦大腿 知乎 编辑:程序博客网 时间:2024/05/21 06:55

安装matplotlib时有时会出现以下错误:


xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

  error: command 'clang' failed with exit status 1

  

  ----------------------------------------

  Failed building wheel for subprocess32



导致没有安装成功。


解决:

在终端输入

xcode-select --install


然后运行

pip install matplotlib


解决。

原创粉丝点击