python无法导入numpy_无法导入python模块(numpy、scipy、matplotlib)

我使用了以下教程来安装Python、numpy、scipy和matplotlib:

我下载了每一个,并通过双击安装。我用的是10.10.5版的苹果操作系统

当我尝试在空闲状态下导入numpy、scipy和matplotlib时,会收到以下错误消息:`>>> import numpy

Traceback (most recent call last):

File "", line 1, in

import numpy

File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/__init__.py", line 137, in

import add_newdocs

File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/add_newdocs.py", line 9, in

from numpy.lib import add_newdoc

File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/lib/__init__.py", line 4, in

from type_check import *

File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/lib/type_check.py", line 8, in

import numpy.core.numeric as _nx

File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/__init__.py", line 5, in

import multiarray

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`

有人能给我解释一下怎么解决这个问题吗?

谢谢

你可能感兴趣的:(python无法导入numpy)