搜索了很多例子,但找不到解决我问题的任何步骤。 Python似乎无法找到我通过PIP安装的任何软件包。例如:
tims-MacBook-Pro:~ timlindsey$ pip install numpy
Requirement already satisfied (use --upgrade to upgrade): numpy in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
然而,当我进入python并尝试导入numpy
时>>> import numpy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named numpy
无论我尝试通过pip引入什么包,似乎都会发生。我会节省文本转储,但确实存在numpy 点子列表
它似乎正在寻找相同的python安装:
tims-MacBook-Pro:~ timlindsey$ which python
/usr/local/bin/python
tims-MacBook-Pro:~ timlindsey$ which pip
/usr/local/bin/pip
这是我的.bash_profile:
export ANDROID_HOME=/usr/local/opt/android-sdk
export PATH="/usr/local/sbin:$PATH"
export PATH="/usr/local/bin:$PATH"
export PATH="Users/timlindsey/anaconda/bin:$PATH"
source ~/.nvm/nvm.sh
我不知道从哪里开始,有什么想法?