当我从sourceforge上的预编译二进制文件安装numpy时,出现以下错误:import numpy
回溯(最近一次呼叫时间):
文件“”,第1行,在
文件“/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site packages/numpy/init.py”,第137行,在import add_newdocs
文件“/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site packages/numpy/add_newdocs.py”,第9行,infrom numpy.lib import add_newdoc
文件“/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site packages/numpy/lib/init.py”,第4行,在from type_check import *
文件“/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site packages/numpy/lib/type_check.py”,第8行,inimport numpy.core.numeric as _nx
文件“/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site packages/numpy/core/init.py”,第5行,在import multiarray
importorror:dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/multiarray.so,2):找不到合适的映像。找到了/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/multiarray.so:通用包装中没有匹配的体系结构