|
From: Paul H. <pmh...@gm...> - 2013-01-28 18:26:39
|
On Mon, Jan 28, 2013 at 10:20 AM, Orgun <am...@gm...> wrote: > Hi guy, > > as I'm new to matplotlib I tried to install it following the instructions > on > http://matplotlib.org/faq/installing_faq.html#source-install-from-git > <http://matplotlib.org/faq/installing_faq.html#source-install-from-git> . > After downloading and changing the directory properly I get the following > error: > > > building 'matplotlib.ft2font' extension > gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -D_FORTIFY_SOURCE=2 -g > -fstack-protector --param=ssp-buffer-size=4 -Wformat > -Werror=format-security > -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 > -DPYCXX_PYTHON_2TO3=1 -I/usr/local/include -I/usr/include > -I/usr/lib/python3/dist-packages/numpy/core/include > -I/usr/include/freetype2 > -I/usr/local/include -I/usr/include -I. -I/usr/include/python3.2mu -c > src/ft2font.cpp -o build/temp.linux-x86_64-3.2/src/ft2font.o > In file included from ./CXX/Extensions.hxx:37:0, > from src/ft2font.h:6, > from src/ft2font.cpp:3: > ./CXX/WrapPython.h:58:20: fatal error: Python.h: No such file or directory > compilation terminated. > error: command 'gcc' failed with exit status 1 This error leads me to think that you need the Python3 development headers. $ sudo apt-get install python3-dev # from memory, so yeah Let us know if that works. -p > I'm using Linux Mint Nadia 14.2 Kernel 3.5.0.17, Python 3.2.3 (Oct 19 2012) > and gcc 4.7.2. Numpy, Simpy & Scipy are up to date. > > What did I do wrong? > I have to use python3 because every other task was written specifficly with > python3. > > cheers, > Christian > |