[Pyrex] Problems Building Pyrex Demos On Ubuntu

Drew Perttula drewp at bigasterisk.com
Wed Feb 13 08:38:47 CET 2008


Juha S. wrote:
> :~/Files/Pyrex/Demos$ sudo python Setup.py build_ext --inplace
> 
> running build_ext
> building 'primes' extension
> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall 
> -Wstrict-prototypes -fPIC -I/usr/include/python2.5 -c primes.c -o 
> build/temp.linux-i686-2.5/primes.o
> primes.c:4:20: error: Python.h: No such file or directory
                      ^^^^^^^^^^^^^^^^^^^

That's the interesting error, at the top. You need

    sudo aptitude install python-dev

(and maybe a few other packages-- search for any other missing files on 
http://packages.ubuntu.com/)



More information about the Pyrex mailing list