您的位置:首页 > 编程语言 > PHP开发

When install ”matplotlib” with ”pip”, if you get the following error, it means the “freetype” and “png” libraries needed by matplotlib are not installed:

2016-04-08 18:45 946 查看
============================================================================

* The following required packages can not be built:

* freetype, png

So install them:

apt-cache search freetype | grep dev
apt-cache search libpng | grep dev
sudo apt-get install libfreetype6-dev libpng12-dev
pip install matplotlib

Done.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: