osx下pip3安装matplotlib时 'The following required packages can not be built: * freetype'

出现这个提示,乍一看以为没有安装freetype的原因,后来找其安装方法。使用brew install freetype ,有提示already installed。然后又看了很多文章,照着改了很多都没有办法。后来胡乱一通查找看到了这个问答

I think the other answers are on the right track, but I encountered this same problem and can attest that:
brew install pkg-config
brew install freetype
pip install matplotlib

上面意思说这哥们遇到过同样的问题,下面的能解决。所以试了下brew install pkg-config然后自动安装了,因为freetype已经提示安装了。最后又安装了一次pip3 install matplotlib成功了

    原文作者:Jenson_
    原文地址: https://www.jianshu.com/p/ed9fae4c4204
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞