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成功了

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容