where is python.h? / NumPy installation

martino m.barenco at gmail.com
Mon Apr 11 10:17:46 EDT 2005


Hi, I am trying to install NumPy (v23.8) onder Macosx (panther
version). Python (v2.3) is bundled into panther and I installed the
IDE on top of that. After having untarred the source distribution in
the desktop directory and typed

>python setup.py install

as recommended in the attached documentation, I get:

running install
running build
running build_py
running build_ext
building '_numpy' extension
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp
-mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -I/System/Library/Frameworks/vecLib.framework/Headers
-IInclude -IPackages/FFT/Include -IPackages/RNG/Include
-I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3
-c Src/arrayobject.c -o
build/temp.darwin-7.8.0-Power_Macintosh-2.3/Src/arrayobject.o
Src/arrayobject.c:18:20: Python.h: No such file or directory
In file included from Src/arrayobject.c:26:
Include/Numeric/arrayobject.h:24: parse error before '*' token
Include/Numeric/arrayobject.h:24: warning: type defaults to `int' in
declaration of `PyArray_GetItemFunc'
Include/Numeric/arrayobject.h:24: warning: data definition has no type
or storage class
Include/Numeric/arrayobject.h:25: parse error before '*' token
Include/Numeric/arrayobject.h:25: warning: function declaration isn't
a prototype

+ zilions of error messages that probably stem from this first error
(i.e. not finding this Python.h file). Now I have looked everywhere
else on the hard drive and Python.h is nowhere to be seen. Should I
install something else before attempting to install NumPy (but what?).
Thanks a lot.

Martino



More information about the Python-list mailing list