G
Gee Chen
----------------------------------
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
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664)
Copyright (C) 2007 Free Software Foundation, Inc.
---------------------------------------------------------------------
I found the download adresses of scipy and numpy from official website
'www.scipy.org'. 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 :
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
site-packages/scipy/_init_.py", line 78, in <module>
from numpy import show_config as show_numpy_config
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
site-packages/numpy/_init_.py", line 137, in <module>
import add_newdocs
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
site-packages/numpy/add_newdocs.py", line 9, in <module>
from numpy.lib import add_newdoc
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
site-packages/numpy/lib/_init_.py", line 4, in <module>
from type_check import *
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
site-packages/numpy/lib/type_check.py", line 8, in <module>
import numpy.core.numeric as _nx
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
site-packages/numpy/core/_init_.py", line 5, in <module>
import multiarray
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/
lib/python2.6/site-packages/numpy/core/multiarray.so, 2): no suitable
image found. Did find:
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
packages/numpy/core/multiarray.so: no matching architecture in
universal wrapperTraceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
site-packages/numpy/_init_.py", line 137, in <module>
import add_newdocs
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
site-packages/numpy/add_newdocs.py", line 9, in <module>
from numpy.lib import add_newdoc
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
site-packages/numpy/lib/_init_.py", line 4, in <module>
from type_check import *
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
site-packages/numpy/lib/type_check.py", line 8, in <module>
import numpy.core.numeric as _nx
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
site-packages/numpy/core/_init_.py", line 5, in <module>
import multiarray
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/
lib/python2.6/site-packages/numpy/core/multiarray.so, 2): no suitable
image found. Did find:
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
packages/numpy/core/multiarray.so: no matching architecture in
universal wrapper
Is there anybody can tell me where the error exists?
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
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664)
Copyright (C) 2007 Free Software Foundation, Inc.
---------------------------------------------------------------------
I found the download adresses of scipy and numpy from official website
'www.scipy.org'. 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 :
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
site-packages/scipy/_init_.py", line 78, in <module>
from numpy import show_config as show_numpy_config
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
site-packages/numpy/_init_.py", line 137, in <module>
import add_newdocs
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
site-packages/numpy/add_newdocs.py", line 9, in <module>
from numpy.lib import add_newdoc
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
site-packages/numpy/lib/_init_.py", line 4, in <module>
from type_check import *
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
site-packages/numpy/lib/type_check.py", line 8, in <module>
import numpy.core.numeric as _nx
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
site-packages/numpy/core/_init_.py", line 5, in <module>
import multiarray
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/
lib/python2.6/site-packages/numpy/core/multiarray.so, 2): no suitable
image found. Did find:
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
packages/numpy/core/multiarray.so: no matching architecture in
universal wrapperTraceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
site-packages/numpy/_init_.py", line 137, in <module>
import add_newdocs
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
site-packages/numpy/add_newdocs.py", line 9, in <module>
from numpy.lib import add_newdoc
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
site-packages/numpy/lib/_init_.py", line 4, in <module>
from type_check import *
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
site-packages/numpy/lib/type_check.py", line 8, in <module>
import numpy.core.numeric as _nx
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
site-packages/numpy/core/_init_.py", line 5, in <module>
import multiarray
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/
lib/python2.6/site-packages/numpy/core/multiarray.so, 2): no suitable
image found. Did find:
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
packages/numpy/core/multiarray.so: no matching architecture in
universal wrapper
Is there anybody can tell me where the error exists?