gpt4 book ai didi

python - 在 fedora 19 上从源代码构建 matplotlib,没有发现 freetype 头文件

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:00:12 24 4
gpt4 key购买 nike

我在fedora 19系统上安装了matplotlib源码包,得到如下信息:

============================================================================
Edit setup.cfg to change the build options

BUILDING MATPLOTLIB
matplotlib: yes [1.3.1]
python: yes [2.7.6 (default, Jan 9 2014, 14:24:42) [GCC
4.8.1 20130603 (Red Hat 4.8.1-1)]]`
platform: yes [linux2]

REQUIRED DEPENDENCIES AND EXTENSIONS
numpy: yes [version 1.8.0]
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 [The C/C++ header for freetype2 (ftbuild.h)
could not be found. You may need to install the
development package.]
png: yes [pkg-config information for 'libpng' could not
be found. Using unknown version.]

OPTIONAL SUBPACKAGES
sample_data: yes [installing]
toolkits: yes [installing]
tests: yes [using nose version 1.3.0]

OPTIONAL BACKEND EXTENSIONS
macosx: no [Mac OS-X only]
qt4agg: no [PyQt4 not found]
gtk3agg: no [Requires pygobject to be installed.]
gtk3cairo: no [Requires cairo to be installed.]
gtkagg: no [Requires pygtk.]
tkagg: no [TKAgg requires Tkinter.]
wxagg: no [requires wxPython]
gtk: no [The C/C++ header for gtk (gtk/gtk.h) could not
be found. You may need to install the development
package.]
agg: yes [installing]
cairo: no [cairo not found]
windowing: no [Microsoft Windows only]

OPTIONAL LATEX DEPENDENCIES
dvipng: yes [version 1.14]
ghostscript: yes [version 9.07]
latex: no
pdftops: yes [version 0.22.1]

============================================================================
* The following required packages can not be built:
* freetype

然而,在安装之前,我已经在默认目录下安装了freetype 2.5.2,即/usr/local。我在 /usr/local/include/freetype2 中找到了头文件 (ft2build.h)。 setupext.py也被检查,在class FreeType(SetupPackage)的代码部分,有

the default_include_dirs=
['freetype2','lib/freetype2/include','lib/freetype2/include/freetype2',]

现在,我不知道为什么软件包找不到已安装的 freetype。有人有什么想法吗?感谢您的帮助!!!

最佳答案

我遇到了完全相同的问题。我在 setupext.py 的 self._check_for_pkg_config() 中用我的 ft2build.h 的整个路径(由 tcaswell 建议)简单地替换了 'ft2build.h' 就解决了这个问题。

关于python - 在 fedora 19 上从源代码构建 matplotlib,没有发现 freetype 头文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21077503/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com