执行时pip install -r requirements.txt
,在安装阶段出现以下错误matplotlib
:
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:
* freetype
还不应该pip install -r requirements.txt
安装freetype吗?freetype应该如何在Ubuntu 12.04中安装以便与它一起使用matplotlib
?
号pip
将不会安装系统级的依赖性。这意味着pip
将不会安装RPM(基于Redhat的系统)或DEB(基于Debian的系统)。
要安装系统依赖项,您将需要根据系统使用以下方法之一。
Ubuntu / Debian:
apt-get install libfreetype6-dev
要在基于Ubuntu / Debian的系统上搜索软件包:
apt-cache search <string>
例如:
apt-cache search freetype | grep dev
Redhat / CentOS / Fedora:
yum -y install freetype-devel
要在基于Redhat / CentOS / Fedora的系统上搜索软件包:
yum search <string>
例如:
yum search freetype | grep devel
Mac OS X的:(通过自制)
brew install freetype
在基于Mac OS X的系统上搜索软件包:
brew search <string>
例如:
brew search freetype
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句