ModuleNotFoundError:没有名为“ SpecAugment”的模块

问题描述

我正在尝试实现GitHub上可用的项目。 https://github.com/DemisEom/SpecAugment

如说明中所示,我正在尝试运行代码。但是我收到错误ModuleNotFoundError: No module named 'SpecAugment'。我按照《自述文件》中的规定进行过pip3 install SpecAugment的访问,这表明要求已得到满足。但是我无法弄清楚问题出在哪里。

我附上了屏幕截图。请帮忙解决

enter image description here

解决方法

我认为这是他们的github存储库上的一个错误。导入行中的UnavailableInvalidChannel: The channel is not accessible or is invalid. channel name: clinicalgraphics channel url: https://conda.anaconda.org/clinicalgraphics error code: 404 不能大写。他们的Readme中的示例代码是不同的。

应该是:

spec
,

根据您的描述,我转载了这个问题:

我使用pip在VSCode的当前环境中安装模块'SpecAugment',它表明该模块在运行时找不到。

解决方案:

找到刚安装在当前环境目录中的模块'SpecAugment'的安装包。我们将发现文件夹specAugment的名称的首字母是小写字母s。当我将其更改为SpecAugment时,它可以成功导入。

enter image description here