title: Installing numpy Lion with Python 2.7?
body: <p>I am working on a OS X 10.7 with Python 2.7 from python.org and XCode 4.2. </p>
  
  <ol>
  <li>Following these <a href="http://www.scipy.org/Installing_SciPy/Mac_OS_X#head-9ec15aabd402675e5139a8c9c727e6a23513d56a">instructions</a>, I tried changing the <code>CC</code>, <code>CXX</code>,
  and <code>FFLAGS</code> variables and install with <code>sudo pip install numpy</code>.
  However, the installation still looks for <code>gcc-4.2</code>.  </li>
  <li>I tried
  installing <code>gcc-4.2</code> through MacPorts but get that <code>Error: gcc42
  does not build on Snow Leopard or later.</code></li>
  <li><p>When I install numpy from the precompiled binary on sourceforge, I get the following error:</p>
  
  <blockquote>
    <blockquote>
      <blockquote>
        <p>import numpy</p>
      </blockquote>
    </blockquote>
  </blockquote>
  
  <p>Traceback (most recent call last):</p>
  
  <p>File "", line 1, in </p>
  
  <p>File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/<strong>init</strong>.py", line 137, in </p>
  
  <pre><code>import add_newdocs
  </code></pre>
  
  <p>File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/add_newdocs.py", line 9, in </p>
  
  <pre><code>from numpy.lib import add_newdoc
  </code></pre>
  
  <p>File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/lib/<strong>init</strong>.py", line 4, in </p>
  
  <pre><code>from type_check import *
  </code></pre>
  
  <p>File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/lib/type_check.py", line 8, in </p>
  
  <pre><code>import numpy.core.numeric as _nx
  </code></pre>
  
  <p>File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/<strong>init</strong>.py", line 5, in </p>
  
  <pre><code>import multiarray
  </code></pre>
  
  <p>ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/multiarray.so, 2): no suitable image found.  Did find: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/multiarray.so: no matching architecture in universal wrapper</p></li>
  </ol>
  
  <p>Any help?</p>