找不到Imgaug模块

时间:2018-09-25 01:53:23

标签: python pip

我正在尝试运行一个使用imgaug软件包的模型,我有一行代码可以

from imgaug import augmenters as iaa.

当我输入pip install imgaug行时,我相信我已经像命令提示符中一样成功安装了imagaug,我收到以下消息:

Requirement already satisfied: imgaug in c:\python36\lib\site-packages 
(0.2.6)
Requirement already satisfied: scipy in c:\python36\lib\site-packages (from 
imgaug) (1.1.0)
Requirement already satisfied: scikit-image>=0.11.0 in c:\python36\lib\site- 
packages (from imgaug) (0.14.0)
Requirement already satisfied: numpy>=1.7.0 in c:\python36\lib\site-packages 
(from imgaug) (1.15.1)
Requirement already satisfied: six in 
c:\users\ashok\appdata\roaming\python\python36\site-packages (from imgaug) 
(1.11.0)
Requirement already satisfied: dask[array]>=0.9.0 in c:\python36\lib\site- 
packages (from scikit-image>=0.11.0->imgaug) (0.19.2)
Requirement already satisfied: networkx>=1.8 in c:\python36\lib\site- 
packages (from scikit-image>=0.11.0->imgaug) (2.2)
Requirement already satisfied: cloudpickle>=0.2.1 in c:\python36\lib\site- 
packages (from scikit-image>=0.11.0->imgaug) (0.5.6)
Requirement already satisfied: pillow>=4.3.0 in c:\python36\lib\site- 
packages (from scikit-image>=0.11.0->imgaug) (5.2.0)
Requirement already satisfied: PyWavelets>=0.4.0 in c:\python36\lib\site- 
packages (from scikit-image>=0.11.0->imgaug) (1.0.0)
Requirement already satisfied: toolz>=0.7.3; extra == "array" in 
c:\python36\lib\site-packages (from dask[array]>=0.9.0->scikit- 
image>=0.11.0->imgaug) (0.9.0)
Requirement already satisfied: decorator>=4.3.0 in c:\python36\lib\site- 
packages (from networkx>=1.8->scikit-image>=0.11.0->imgaug) (4.3.0)

但是,当我在Jupyter Notebook中运行代码时,出现错误消息

ModuleNotFoundError: No module named 'imgaug'.

此错误的原因是什么?我是否必须在特定环境中安装或运行imgaug?我正在使用Windows,所以sudo pip安装将无法进行。非常感谢您的关注和帮助。

0 个答案:

没有答案