ubuntu14.04 server python3 安装matplotlib失败及解决方法

来源:互联网 发布:淘宝众筹能退款吗 编辑:程序博客网 时间:2024/06/06 21:42

在终端输入如下命令:sudo pip3 install matplotlib

失败,提示如下:

Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/matplotlib

Storing debug log for failure in /home/kaierlong/.pip/pip.log


解决方法:

安装freetype-dev包

sudo apt-get install libfreetype6-dev libxft-dev

再次安装matplotlib:

sudo pip3 install matplotlib

安装成功!

原创粉丝点击