我在安装tfds时候除了问题
qq87258580 opened this issue · 4 comments
ImportError Traceback (most recent call last)
in ()
1 from future import absolute_import, division, print_function, unicode_literals
2 # 安装tfds pip install tfds-nightly==1.0.2.dev201904090105
----> 3 import tensorflow_datasets as tfds
4 import tensorflow as tf
5 import tensorflow.keras.layers as layers
~\Anaconda3\lib\site-packages\tensorflow_datasets_init_.py in ()
44 # needs to happen before anything else, since the imports below will try to
45 # import tensorflow, too.
---> 46 from tensorflow_datasets.core import tf_compat
47 tf_compat.ensure_tf_install()
48
~\Anaconda3\lib\site-packages\tensorflow_datasets\core_init_.py in ()
16 """API to define datasets."""
17
---> 18 from tensorflow_datasets.core.dataset_builder import BeamBasedBuilder
19 from tensorflow_datasets.core.dataset_builder import BuilderConfig
20 from tensorflow_datasets.core.dataset_builder import DatasetBuilder
~\Anaconda3\lib\site-packages\tensorflow_datasets\core\dataset_builder.py in ()
31 from tensorflow_datasets.core import api_utils
32 from tensorflow_datasets.core import constants
---> 33 from tensorflow_datasets.core import dataset_utils
34 from tensorflow_datasets.core import download
35 from tensorflow_datasets.core import file_format_adapter
~\Anaconda3\lib\site-packages\tensorflow_datasets\core\dataset_utils.py in ()
27 from tensorflow_datasets.core import api_utils
28 from tensorflow_datasets.core import tf_compat
---> 29 from tensorflow_datasets.core import utils
30
31
~\Anaconda3\lib\site-packages\tensorflow_datasets\core\utils_init_.py in ()
19 from tensorflow_datasets.core.utils.py_utils import *
20 from tensorflow_datasets.core.utils.tf_utils import *
---> 21 from tensorflow_datasets.core.utils.tqdm_utils import *
22 from tensorflow_datasets.core.utils.version import Version
23 # pylint: enable=wildcard-import
~\Anaconda3\lib\site-packages\tensorflow_datasets\core\utils\tqdm_utils.py in ()
23 import contextlib
24
---> 25 from tqdm import auto as tqdm_lib
26
27
ImportError: cannot import name 'auto'
需要执行: pip install tfds-nightly==1.0.2.dev201904090105
来安装tfds,官方教程给的翻译数据集只有这个版本的tfds可以用
好的 谢谢。。
好像没用
参考 https://zhuanlan.zhihu.com/p/65822023,需要升级tdqm, pip install tqdm==4.32.1