美文网首页
Ubuntu安装matplotlib时出现freetype依赖问

Ubuntu安装matplotlib时出现freetype依赖问

作者: slords | 来源:发表于2017-06-12 14:12 被阅读0次

Ubuntu在安装freetype及freetype-dev时通常使用以下指令即可。

sudo apt-get freetype2-demos libfreetype6 libfreetype6-dev

但是在安装matplotlib时,仍然会提示:缺少freetype的依赖

image.png

原来是没有找到所需要的库文件"ft2build.h",该文件位置为/usr/include/freetype2/ft2build.h
解决方案:创建一个硬链接即可:

sudo ln -s /usr/include/freetype2/ft2build.h /usr/include/

相关文章

网友评论

      本文标题:Ubuntu安装matplotlib时出现freetype依赖问

      本文链接:https://www.haomeiwen.com/subject/xyclqxtx.html