I have installed pythonxy on Windows 7 and an error occured after I ran
from pylab import *
which seemed to come from matplotlib, connected to the ft2font module. I tried to reinstall matplotlib by downloading it from https://pypi.python.org/pypi/matplotlib/1.1.0 and running
python setup.py install
The installation aborts with the message
In file included from src/ft2font.cpp:3:0:
src/ft2font.h:16:22: fatal error: ft2build.h: No such file or directory
#include <ft2build.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1
Can somebody help me with this?
You need to install the dev libraries for "freetype2", and doing so depends on how you've got your local environment configured.
This is explained in more detail here;
http://gnuwin32.sourceforge.net/packages/freetype.htm
http://www.freetype.org/download.html
It would also appear a similar question is answered here;
Visual studio 2010 no such file
However this can be a tricky process and matplotlib
recommend that Windows users use the "Enthought Edition" of Python which has many of these packages preinstalled;
http://matplotlib.org/users/installing.html#installing-on-windows
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句