Some problems refer to install 3rd party package of Python on mac OS 10.6.8

Chris Rebert clp2 at
Mon Aug 29 03:14:27 CEST 2011

On Sun, Aug 28, 2011 at 5:35 PM, Gee Chen <cnchenji at> wrote:
> ----------------------------------
> the Python environment on my mac is:
> Python 2.6.4 (r264:75706, Aug 28 2011, 22:29:24)
> [GCC 4.2.1 (Apple Inc. build 5664)] on darwin

For future reference, when on OS X, it's very helpful to include how
you installed your Python, and whether it's 32-bit or 64-bit.

> I found the download adresses of scipy and numpy from official website
> ''. After downloading 2 latest released dmg files, i
> directly installed them with double-click the dmg files.
> Then, i opened Python interpreter in Terminal, and tested whether
> scipy & numpy work. The result is disappointed!
> when i inputed ' import scipy' & 'import numpy', the output is :
>>>> import scipy
> Traceback (most recent call last):
> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
> site-packages/numpy/core/", line 5, in <module>
> import multiarray
> ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/
> lib/python2.6/site-packages/numpy/core/, 2): no suitable
> image found. Did find:
> /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
> packages/numpy/core/ no matching architecture in
> universal wrapper
> Is there anybody can tell me where the error exists?

I believe you've installed 32-bit libraries for a 64-bit Python (or
possibly vice-versa). It appears that NumPy & SciPy official releases
are 32-bit-only. So, you can either use the alternate, unofficial
64-bit releases of those packages, or install a 32-bit Python (via
Fink, MacPorts, a installer, etc.). A third option is to
install the Enthought Python Distribution
( ) or similar, which bundles
Python together with SciPy, NumPy, and other libraries in a single


More information about the Python-list mailing list