matplotlib and numpy installation

Travis E. Oliphant oliphant.travis at ieee.org
Sat May 27 05:23:55 EDT 2006


cesco wrote:
> Hi,
> 
> I wanted to install python, numpy and matplotlib on Linux Ubuntu.
> I installed python with the following commands
> ./configure --enable-unicode=ucs4
> [snip]
> running build_ext
> building 'matplotlib.backends._ns_backend_agg' extension
> gcc options: '-pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
> -Wstrict-prot\
> otypes -fPIC'
> compile options:
> '-I/usr/local/lib/python2.4/site-packages/numpy/core/include -\
> I/usr/include -I. -Isrc -Iswig -Iagg23/include -I. -I/usr/include -I.
> -I/usr/lo\
> cal/lib/python2.4/site-packages/numpy/core/include/freetype2
> -I/usr/include/fre\
> etype2 -I./freetype2 -Isrc/freetype2 -Iswig/freetype2
> -Iagg23/include/freetype2\
>  -I./freetype2 -I/usr/include/freetype2 -I./freetype2
> -I/usr/local/include/pyth\
> on2.4 -c'
> extra options: '-DSCIPY=1'
> gcc: src/_image.cpp
> src/_image.cpp:5:17: png.h: No such file or directory

This is the source of the remaining errors....

On my system the "png.h" file comes from a libpng3-devel rpm

Perhaps you need to use apt-get to obtain the development package for png.

-Travis






More information about the Python-list mailing list