导入错误,没有名为numpy的模块,但它说它已安装?

时间:2022-09-28 19:32:06

So I trying to install and run from MSFT the cntk, you know, just for fun. Anyway, I keep getting this error which says:

所以我试着安装并运行MSFT cntk,你知道,只是为了好玩。无论如何,我一直收到这样的错误:

import numpy as np

ModuleNotFoundError: No module named 'numpy'

ModuleNotFoundError:没有名为'numpy'的模块

Now I have looked around here a little and I found a post saying that I needed to install the latest version of NumPy, but when I go to do that, I get back this:

现在我已经在这里看了一下,我发现一篇帖子说我需要安装最新版本的NumPy,但是当我这样做时,我会回来:

Requirement already satisfied: NumPy in c:\users\username\appdata\local\continuum\anaconda3\envs\cntk-py34\lib\site-packages

要求已满足:C:\ users \ username \ appdata \ local \ continuum \ anaconda3 \ envs \ cntk-py34 \ lib \ site-packages中的NumPy

SO I really have no idea what is going on here.

所以我真的不知道这里发生了什么。

Anyway, thanks in advance.

无论如何,提前谢谢。

1 个解决方案

#1


1  

Is your IDE linked to Anaconda env? If you open up the Anaconda prompt and import numpy do you get the same error?

你的IDE链接到Anaconda env吗?如果你打开Anaconda提示并导入numpy你会得到同样的错误吗?

You probably have an environment outside of Anaconda which does not have numpy installed.

你可能有一个Anaconda以外的环境没有安装numpy。

#1


1  

Is your IDE linked to Anaconda env? If you open up the Anaconda prompt and import numpy do you get the same error?

你的IDE链接到Anaconda env吗?如果你打开Anaconda提示并导入numpy你会得到同样的错误吗?

You probably have an environment outside of Anaconda which does not have numpy installed.

你可能有一个Anaconda以外的环境没有安装numpy。