how to install matplotlib

$ pip install matplotlib

============================================================================
* The following required packages can not be built:
* freetype, png
* Try installing freetype with `apt-get install
* libfreetype6-dev` and pkg-config with `apt-get
* install pkg-config`
* Try installing png with `apt-get install
* libpng12-dev` and pkg-config with `apt-get install
* pkg-config`

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-LcxKFA/matplotlib/


$ sudo apt-get install libfreetype6-dev
$ sudo apt-get install pkg-config
$ pip install matplotlib

posted on 2019-07-03 11:26  cdekelon  阅读(116)  评论(0)    收藏  举报

导航