Problem installing NumPy with Python 3.2.2/MacOS X 10.7.2
Hi There, I am very new to numpy and have really only started investigating it as one of my students needs some functionality from matplotlib. I have managed to install everything under Windows for work in class but I use a Mac at home and have been struggling all night to get it to build and install. I should mention that I am using Python 3.2.2 both in school and at home and it isn't an option to use Python 2.7 as all of the rest of my class is taught in Python 3. I also have the most recent version of Xcode installed. I have installed the correct build of gcc-4.2 with Fortran (gcc-4.2 (Apple build 5666.3) with GNU Fortran 4.2.4 for Mac OS X 10.7 (Lion)) from http://r.research.att.com/tools/ I then followed the install instructions but the build fails with the following message: File "numpy/core/setup.py", line 271, in check_types "Cannot compile 'Python.h'. Perhaps you need to "\ SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel. I have got no idea what to do with this error message. Any help would be much appreciated. Kind Regards, Adam.
Hi There,
I am very new to numpy and have really only started investigating it as one of my students needs some functionality from matplotlib. I have managed to install everything under Windows for work in class but I use a Mac at home and have been struggling all night to get it to build and install.
I should mention that I am using Python 3.2.2 both in school and at home and it isn't an option to use Python 2.7 as all of the rest of my class is taught in Python 3. I also have the most recent version of Xcode installed.
I have installed the correct build of gcc-4.2 with Fortran (gcc-4.2 (Apple build 5666.3) with GNU Fortran 4.2.4 for Mac OS X 10.7 (Lion)) from http://r.research.att.com/tools/
I then followed the install instructions but the build fails with the following message:
File "numpy/core/setup.py", line 271, in check_types "Cannot compile 'Python.h'. Perhaps you need to "\ SystemError: Cannot compile 'Python.h'. Perhaps you need to install
On Friday, December 16, 2011, McNicol, Adam <amcnicol@longroad.ac.uk> wrote: python-dev|python-devel.
I have got no idea what to do with this error message. Any help would be
much appreciated.
Kind Regards,
Adam.
Adam, Just a quick comment about matplotlib and py3k. We have not yet released a version for py3k. Support is currently being worked on in the development branch, but I have no clue about the level of testing it has received for windows and macs. Just a heads-up. Ben Root
On Fri, Dec 16, 2011 at 4:07 PM, McNicol, Adam <amcnicol@longroad.ac.uk>wrote:
**
Hi There,
I am very new to numpy and have really only started investigating it as one of my students needs some functionality from matplotlib. I have managed to install everything under Windows for work in class but I use a Mac at home and have been struggling all night to get it to build and install.
I should mention that I am using Python 3.2.2 both in school and at home and it isn't an option to use Python 2.7 as all of the rest of my class is taught in Python 3. I also have the most recent version of Xcode installed.
I have installed the correct build of gcc-4.2 with Fortran (gcc-4.2 (Apple build 5666.3) with GNU Fortran 4.2.4 for Mac OS X 10.7 (Lion)) from http://r.research.att.com/tools/
I then followed the install instructions but the build fails with the following message:
File "numpy/core/setup.py", line 271, in check_types "Cannot compile 'Python.h'. Perhaps you need to "\ SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel.
I have got no idea what to do with this error message. Any help would be much appreciated.
Is Python.h present? If so, is it in the search path? How did you install Python3.2.2? Chuck
On Sat, Dec 17, 2011 at 1:21 AM, Charles R Harris <charlesr.harris@gmail.com
wrote:
On Fri, Dec 16, 2011 at 4:07 PM, McNicol, Adam <amcnicol@longroad.ac.uk>wrote:
**
Hi There,
I am very new to numpy and have really only started investigating it as one of my students needs some functionality from matplotlib. I have managed to install everything under Windows for work in class but I use a Mac at home and have been struggling all night to get it to build and install.
I should mention that I am using Python 3.2.2 both in school and at home and it isn't an option to use Python 2.7 as all of the rest of my class is taught in Python 3. I also have the most recent version of Xcode installed.
Did you also install the optional 10.4/5/6 SDK's with XCode? They may be
needed. It could also be a bug in distribute. On OS X 10.6 distribute 0.6.10 works for me, but I see they're now at version 0.6.24. No idea if that works or not. Ralf I have installed the correct build of gcc-4.2 with Fortran (gcc-4.2 (Apple
build 5666.3) with GNU Fortran 4.2.4 for Mac OS X 10.7 (Lion)) from http://r.research.att.com/tools/
I then followed the install instructions but the build fails with the following message:
File "numpy/core/setup.py", line 271, in check_types "Cannot compile 'Python.h'. Perhaps you need to "\ SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel.
I have got no idea what to do with this error message. Any help would be much appreciated.
Is Python.h present? If so, is it in the search path? How did you install Python3.2.2?
Chuck
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
participants (4)
-
Benjamin Root
-
Charles R Harris
-
McNicol, Adam
-
Ralf Gommers