问题描述
我已经安装了numpy-1.11.0b3,pip安装了"numpy-1.11.0b3 + mkl-cp35-cp35m-win32.whl".安装成功.
I have installed numpy-1.11.0b3 by, pip install "numpy-1.11.0b3+mkl-cp35-cp35m-win32.whl". The installation became successful.
但是,当我在Python Shell(3.5.1)上编写"import numpy"时,出现的错误为-ImportError:没有名为"numpy"的模块.
But, when I write "import numpy" at the Python Shell (3.5.1), I am getting the error as - ImportError: No module named 'numpy'.
有人可以建议我吗?
关于Arpan Ghose,
Regards, Arpan Ghose
推荐答案
可能已经为较低版本的python安装了pip.要进行检查,请先通过以下方法查找默认的python版本:
It may be possible that you have have installed pip for some lower version of python. To check it first look for your default python version by:
现在使用pip检查您的python链接版本
Now check for your linked version of python with pip
现在查看两个python版本是否匹配.如果它们不匹配,则需要升级您的点数:
Now see if the two python versions match.If they don't match then, you need to upgrade you pip :
现在为此安装numpy:
Now install numpy for this:
希望这会有所帮助!
这篇关于在Python 3.5.1导入numpy时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!