<p>Andrew,</p>
<p>I'm afraid you did.</p>
<p>It's generally considered a "very bad idea"(™) to install NumPy on a recent OSX system without specifying a destination. By default, the process will try to install on /Library/Frameworks/Python, overwriting the pre-installed version of NumPy that comes with your machine. You probably don't want to do that.</p>

<p>However, using either the --user flag or a virtual environment (<a href="http://www.virtualenv.org/en/latest/">http://www.virtualenv.org/</a>) works pretty well. EG</p>
<p>`python setup.py install --user` should install bumpy in a ~/.local directory, you'll just have to update your PYTHONPATH</p>
<p>Good luck<br></p>
<p>-- </p>
<p>Pierre GM<br></p>
<p>On Tuesday, August 7, 2012 at 08:15 , Andrew Nelson wrote:</p>
<blockquote><p>Dear list,</p>
<p>I am trying to build numpy 1.6.2 from source but am running up against a few problems.<br></p>
<p>Platform: OSX10.6.8</p>
<p>Python: 2.7.3 (compiled using gcc 4.2.1)</p>
<p>gcc: 4.2.1</p>
<p>gfortran: 4.2.1<br></p>
<p>I try the normal build sequence:</p>
<p>python setup.py build</p>
<p>sudo python setup.py install<br></p>
<p>However, when I try to import numpy I get:<br></p>
<p>>>> import numpy</p>
<p>Traceback (most recent call last):</p>
<p>  File "<stdin>", line 1, in <module></p>
<p>  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/__init__.py", line 137, in <module></p>
<p>    import add_newdocs</p>
<p>  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/add_newdocs.py", line 9, in <module></p>
<p>    from numpy.lib import add_newdoc</p>
<p>  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/lib/__init__.py", line 4, in <module></p>
<p>    from type_check import *</p>
<p>  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/lib/type_check.py", line 8, in <module></p>
<p>    import numpy.core.numeric as _nx</p>
<p>  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/__init__.py", line 5, in <module></p>
<p>    import multiarray</p>
<p>ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/multiarray.so, 2): Symbol not found: _npy_ceil</p>
<p>  Referenced from: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/multiarray.so</p>
<p>  Expected in: flat namespace</p>
<p> in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/multiarray.so<br></p>
<p>The numpy source was from the Sourceforge official page.</p>
<p>When I run nm on the multiarray module I get:<br></p>
<p>%nm /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/multiarray.so</p>
<p>.......<snip a lot of stuff></p>
<p>         U _npy_ceil</p>
<p>         U _npy_double_to_half</p>
<p>         U _npy_doublebits_to_halfbits</p>
<p>         U _npy_float_to_half</p>
<p>         U _npy_floatbits_to_halfbits</p>
<p>         U _npy_half_isnan</p>
<p>         U _npy_half_iszero</p>
<p>         U _npy_half_le</p>
<p>         U _npy_half_lt_nonan</p>
<p>         U _npy_half_to_double</p>
<p>         U _npy_half_to_float</p>
<p>         U _npy_halfbits_to_doublebits</p>
<p>         U _npy_halfbits_to_floatbits<br></p>
<p>So it seems that the _npy_ceil symbol is undefined.  I looked at /build/src.macosx-10.6-intel-2.7/numpy/core/include/numpy/config.h and it contains:<br></p>
<p>#define HAVE_CEIL<br></p>
<p>Am I doing something wrong?<br></p>
<p>regards,</p>
<p>Andrew<br><br></p>
<p>-- <br>
_____________________________________<br>
Dr. Andrew Nelson<br></p>
<p>_____________________________________</p>
<p>_______________________________________________</p>
<p>NumPy-Discussion mailing list</p>
<p><a href="mailto:NumPy-Discussion@scipy.org">NumPy-Discussion@scipy.org</a></p>
<p><a href="http://mail.scipy.org/mailman/listinfo/numpy-discussion">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a><br>
</p>
</blockquote>
<p></p>