473,465 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

where is python.h? / NumPy installation

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
Jul 18 '05 #1
2 3087
martino wrote:
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.


It *should* be
/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3/Python.h

In the meantime, you can snag a pre-built Numeric from

http://pythonmac.org/packages/

--
Robert Kern
rk***@ucsd.edu

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter

Jul 18 '05 #2
>
It *should* be
/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3/Python.h

In the meantime, you can snag a pre-built Numeric from

http://pythonmac.org/packages/


It was not there to start with and by trying to install xcode from
apple's developpers site, I ended up screwing the pre-installed
version of python. So, I reinstalled a new build of python (2.4.1)
found on python.org (which put the coveted Python.h at the right place
and also the IDE) and then the pre-built of Numeric you just
mentionned and it now seems to work, so thanks a lot for the tip.

The original problem must stem from my installing panther over jaguar
in my machine, something must have gone wrong then.

Thanks again

Martino
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: youngdubliner | last post by:
I'm having a problem ........ I've stripped all my code to help isolate the problem. Its seems to be with importing numarray when python is embedded in C. I have a simple C program it Opens...
9
by: Carl | last post by:
I am desperately looking for a way to call Python from Matlab. I have become used to Python's rich syntax and large number of libraries, and feel ridiculously clumsy being stuck with Matlab's...
3
by: jefishman | last post by:
I have a Python (2.3.x) interpreter running embedded in a C++ application on a host machine. I would like to run a specific package on that host machine (numpy). I have managed to compile...
2
by: Christian | last post by:
Hi, I'm having problems with python 2.4.4 built on a Celeron D. I had problems earlier with that processor which I think has understands some 64 bit instructions (whatever that means) but is still...
6
by: Pete Crite | last post by:
Hello, I've been trying to install Gnumeric via MacPorts recently, but I can't get past the installation of py25-numpy. It appears that python crashes consistently during installation. I'm...
3
by: chapagainanish | last post by:
Hi!! I'm having installation problem for installing numpy and scipy in Cygwin for Python, and am obstruct in madway for project, i followed scipy.org guidelines but there's few error thrown as...
3
by: luca.ciciriello | last post by:
Hi all. I've installed on may MacOS X 10.4.11 (PPC) Python-2.5.2, numpy and scipy. Now I'm interested to insall Python-2.6. My question is: What will happen to may scientific modules if now I...
7
by: W. eWatson | last post by:
I copied the following code from a matplotlib tutorial, and it fails. I'm using python 2.4 on Win XP. It's matplotlib-0.98.3.win32-py2.4exe. It fails in IDLE with a small window showing a runtime...
0
by: Guido van Rossum | last post by:
Hey Travis, Congratulations with this release! Are you guys thinking of Python 2.6 yet, now that it's been released? --Guido On Tue, Oct 21, 2008 at 2:53 PM, Travis Vaught...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.