在终端输入如下命令: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
安装成功!