导入错误:没有名为numpy Anaconda的模块 [英] Import Error: No module named numpy Anaconda

查看:228
本文介绍了导入错误:没有名为numpy Anaconda的模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个与此问题非常相似的问题.我在Windows 7 64位系统上仅安装了一个版本的python 3.5.我通过问题官方网站通过官方网站安装了Anaconda3.4.安装进行得很好,但是当我要导入时(我只是从命令行输入python)

I have a very similar question to this question. I have only one version of python 3.5 installed on my Windows 7 64-bit system. I installed Anaconda3.4 via official website - as suggested in the question. The installation went fine but when I want to import(I just typing python from the command line )

import numpy

Import error:No module named numpy

然后我退出并输入

pip install numpy 

已经满足要求(使用--upgrade升级):d:\ program fi中的numpy les \ anaconda3 \ lib \ site-packages

Requirement already satisfied (use --upgrade to upgrade): numpy in d:\program fi les\anaconda3\lib\site-packages

我知道这可能是一个非常基本的问题,但是我仍在学习...谢谢

I know this is probably a super basic question, but I'm still learning... Thanks

推荐答案

如果您正在使用Anaconda3,则应该已经安装了numpy.没有理由使用pip.我的猜测是,Anaconda发行版可能不在您的路径上,而您正在选择其他一些系统python.

If you are using Anaconda3 then you should already have numpy installed. There is no reason to use pip. My guess is that the Anaconda distribution is possibly not on your path and you are picking up some other system python.

您应该运行where python(或where python3)以查看所使用的是哪个.如果可执行文件不在Anaconda安装中,那么这就是您的问题,您将需要编辑路径环境变量以确保您要打开所需的python.

You should run where python (or where python3) to see which one you are using. If the executable is not in the Anaconda install, then that is your problem and you will need to edit your path environment variable to ensure that you are opening the python you want.

这篇关于导入错误:没有名为numpy Anaconda的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆