python为什么numpy找不到_python找不到numpy

现在,当我输入哪个python时,它显示/usr/local/bin/python。

但是,当我输入pip install numpy

它显示Requirement already satisfied (use --upgrade to upgrade): numpy in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python.

因此,它们似乎位于不同的目录中,而且可能是我以前安装的numpy,这使得pip一直告诉我它们已经安装。我想知道这有什么办法吗?

更新,我已尝试导入它。import numpy

Traceback (most recent call last):

File "", line 1, in

ImportError: No module named numpy

我也尝试卸载numpy并再次安装它。但是,当我卸载它时。它仍然给我错误。applematoMacBook-Air:~ apple$ pip uninstall numpy

DEPRECATION: Uninstalling a distutils installed project (numpy) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.

Uninstalling numpy-1.8.0rc1:

/System/Library/Frameworks/Python.framework/Versions/2.7/

你可能感兴趣的:(python为什么numpy找不到_python找不到numpy)