Install matplotlib on macOS Sierra

Published in categories blog  Technology  tagged with #python  #matplotlab  #踩过的坑 

在 macOS 下安装 matplotlab 报错,

Google 看到解决方法: sudo pip -H install matplotlib

sudo pip install matplotlib --ignore-installed six

以及关闭SIP(system integrity protection)

都不能成功安装。

最后找到了解决办法:

1.install pig-config

brew install pkg-config

2.install freetype

brew install freetype

3.install matplotlib

pip install matplotlib

Enjoy!

comments powered by Disqus