1
我的Python版本名爲numpy的:導入錯誤:沒有模塊OSX10.12.1
>which python
/usr/local/bin/python
已驗證numpy
安裝:
>pip install numpy
Requirement already satisfied: numpy in /usr/local/lib/python2.7/site-packages
PYTHONPATH導出:
echo $PYTHONPATH
/usr/local/lib/python2.7/site-packages
但是,當我使用Python和import numpy
它顯示錯誤:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named numpy