我无法在freetype
上安装matplotlib)
{{1>}的{em>先决条件,尽管我按照freetype2.html上的说明操作了所有建议 - 在前几页的结果中 - Google search,尤其是此stack-overflow thread。
Cygwin,
上安装freetype/matplotlib
的成功吗? 我的设置:
我做了什么?
在Cygwin的设置(setup-x86.exe)中,我输入了Cygwin
和freetype
并安装了所有找到的包(及其依赖项)。
然后:
pkg-config,
和
$ apt-cyg search freetype
Searching downloaded packages...
cygwin64-freetype2
girepository-x11
libfontconfig-devel
libfreetype-devel
libfreetype-doc
libfreetype6
$ for i in cygwin64-freetype2 girepository-x11 libfontconfig-devel libfreetype-devel libfreetype-doc libfreetype6 ; do echo "$i" ; apt-cyg install $i ; done
cygwin64-freetype2
Package cygwin64-freetype2 is already installed, skipping
girepository-x11
Package girepository-x11 is already installed, skipping
libfontconfig-devel
Package libfontconfig-devel is already installed, skipping
libfreetype-devel
Package libfreetype-devel is already installed, skipping
libfreetype-doc
Package libfreetype-doc is already installed, skipping
libfreetype6
Package libfreetype6 is already installed, skipping
验证
$ apt-cyg install pkg-config
Package pkg-config is already installed, skipping
所以,似乎我的Cygwin中安装了freetype。
唉:
$ freetype-config --version
17.4.11
$ easy_install matplotlib
Searching for matplotlib
Reading https://pypi.python.org/simple/matplotlib/
Reading http://matplotlib.org
Reading http://matplotlib.sourceforge.net
Reading http://sourceforge.net/project/showfiles.php?group_id=80706
Reading http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474
Reading http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.0/
Reading http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.1/
Reading https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194
Reading https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474
Reading https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.1/
Reading https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.3/
Reading https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0
Reading https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0.1/
Best match: matplotlib 1.4.3
Downloading https://pypi.python.org/packages/source/m/matplotlib/matplotlib-1.4.3.tar.gz#md5=86af2e3e3c61849ac7576a6f5ca44267
Processing matplotlib-1.4.3.tar.gz
Writing /cygdrive/c/Users/ADMINI~1/AppData/Local/Temp/easy_install-D6sdBX/matplotlib-1.4.3/setup.cfg
Running matplotlib-1.4.3/setup.py -q bdist_egg --dist-dir /cygdrive/c/Users/ADMINI~1/AppData/Local/Temp/easy_install-D6sdBX/matplotlib-1.4.3/egg-dist-tmp-q6Vh0z
IMPORTANT WARNING:
pkg-config is not installed.
matplotlib may not be able to find some of its dependencies
===========================================================================
Edit setup.cfg to change the build options
BUILDING MATPLOTLIB
matplotlib: yes [1.4.3]
python: yes [2.7.8 (default, Jul 28 2014, 01:34:03) [GCC
4.8.3]]
platform: yes [cygwin]
REQUIRED DEPENDENCIES AND EXTENSIONS
numpy: yes [version 1.9.2]
six: yes [using six version 1.9.0]
dateutil: yes [dateutil was not found. It is required for date
axis support. pip/easy_install may attempt to
install it after matplotlib.]
pytz: yes [using pytz version 2015.2]
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 (ft2build.h)
could not be found. You may need to install the
development package.]
png: yes [version 1.6.17]
qhull: yes [pkg-config information for 'qhull' could not be
found. Using local copy.]
OPTIONAL SUBPACKAGES
sample_data: yes [installing]
toolkits: yes [installing]
tests: yes [nose 0.11.1 or later is required to run the
matplotlib test suite. pip/easy_install may attempt
to install it after matplotlib. / mock is required
to run the matplotlib test suite. pip/easy_install
may attempt to install it after matplotlib.]
toolkits_tests: yes [nose 0.11.1 or later is required to run the
matplotlib test suite. pip/easy_install may attempt
to install it after matplotlib. / mock is required
to run the matplotlib test suite. pip/easy_install
may attempt to install it after matplotlib.]
OPTIONAL BACKEND EXTENSIONS
macosx: no [Mac OS-X only]
qt5agg: yes [installing, Qt: 5.3.2, PyQt: 5.3.2]
qt4agg: yes [installing, Qt: 4.8.6, PyQt: 4.8.6]
pyside: no [PySide not found]
gtk3agg: no [Requires gtk3 development files to be
installed.]
gtk3cairo: no [Requires gtk3 development files to be
installed.]
/usr/lib/python2.7/site-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
warnings.warn(str(e), _gtk.Warning)
gtkagg: no [The C/C++ header for gtk (gtk/gtk.h) could not
be found. You may need to install the development
package.]
tkagg: yes [installing, version 81008]
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: yes [installing, pycairo version 1.10.0]
windowing: no [Microsoft Windows only]
OPTIONAL LATEX DEPENDENCIES
dvipng: yes [version 1.14]
ghostscript: yes [version 9.15]
latex: yes [version 3.14159265]
pdftops: no
所以,尽管我抱有错误的希望,但无法构建freetype,因此无法安装matplotlib。