在安装matplotlib的阶段执行pip install -r requirements.txt时,我得到了以下错误
REQUIRED DEPENDENCIES AND EXTENSIONS
numpy: yes [not found. pip may install it below.]
dateutil: yes [dateutil was not found. It is required for date
axis support. pip/easy_install may attempt to
install it after matplotlib.]
tornado: yes [tornado was not found. It is required for the
WebAgg backend. pip/easy_install may attempt to
install it after matplotlib.]
pyparsing: yes [pyparsing was not found. It is required for
mathtext support. pip/easy_install may attempt to
install it after matplotlib.]
pycxx: yes [Couldn't import. Using local copy.]
libagg: yes [pkg-config information for 'libagg' could not
be found. Using local copy.]
freetype: no [pkg-config information for 'freetype2' could
not be found.]..。
The following required packages can not be built:
* freetypepip install -r requirements.txt不也应该安装freetype吗?如何在Ubuntu12.04中安装freetype才能与matplotlib兼容
发布于 2014-06-28 18:21:28
我必须安装libxft-dev才能在ubuntu服务器14.04上启用matplotlib。
sudo apt-get install libfreetype6-dev libxft-dev然后我就可以用
sudo easy_install matplotlib发布于 2015-01-05 13:06:03
一种变通方法是使用我发现的in this github issue来做sudo apt-get install pkg-config。
发布于 2015-02-25 07:39:45
对于我在Ubuntu上升级matplotlib来说,现有的答案都不起作用。这就是最终对我有效的方法:
$ sudo apt-get install build-dep python-matplotlib
$ pip install matplotlib --upgradehttps://stackoverflow.com/questions/20533426
复制相似问题