ImportError:无法从'tqdm'导入名称'auto'

问题描述

我的Python版本是3.7.0版

要导入tensorflow_datasets,

import tensorflow_datasets

我运行了代码,但是:

ImportError: cannot import name 'auto' from 'tqdm'

那么,如何导入汽车?当我搜索auto库时:

ERROR : Could not find a version that satisfies the requirement auto
ERROR : No matching distribution found for auto

我试图在anaconda环境中寻找auto库。但是我找不到完全相同的名称“ auto”。 “ auto”属于哪个库?

解决方法

据我所知,它来自tqdm,我只将其用于进度条。在tqdm GitHub中,他们从tqdm.auto导入内容。另外,运行from tqdm import auto对我也有效,所以我猜它就在那儿。

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...