<br><br><div class="gmail_quote">On Fri, Dec 16, 2011 at 4:07 PM, McNicol, Adam <span dir="ltr"><<a href="mailto:amcnicol@longroad.ac.uk">amcnicol@longroad.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>






<div>


<p><font>Hi There,<br>
<br>
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.<br>

<br>
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.<br>

<br>
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 <a href="http://r.research.att.com/tools/" target="_blank">http://r.research.att.com/tools/</a><br>

<br>
I then followed the install instructions but the build fails with the following message:<br>
<br>
  File "numpy/core/setup.py", line 271, in check_types<br>
    "Cannot compile 'Python.h'. Perhaps you need to "\<br>
SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel.<br>
<br>
I have got no idea what to do with this error message. Any help would be much appreciated.<br>
<br></font></p></div></blockquote><div><br>Is Python.h present? If so, is it in the search path? How did you install Python3.2.2?<br><br>Chuck <br></div></div>