无法在venv中使用pip安装tensorflow_datasets软件包

时间:2020-06-08 21:10:25

标签: python tensorflow

我无法在Linux中为python tensorflow安装tensorflow_datasets软件包。我收到以下错误:

 Collecting tensorflow_datasets
 Downloading tensorflow-datasets-3.1.0.tar.gz (2.8 MB)
 |████████████████████████████████| 2.8 MB 330 kB/s 
 ERROR: Command errored out with exit status 1:
 command: /usr/bin/python2 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-  install-tl6FoN/tensorflow-datasets/setup.py'"'"'; __file__='"'"'/tmp/pip-install-tl6FoN/tensorflow-datasets/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-PZoDeb
     cwd: /tmp/pip-install-tl6FoN/tensorflow-datasets/
Complete output (1 lines):
error in tensorflow-datasets setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.
----------------------------------------
 ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full   command output.

我该如何解决?我在Linux中使用python 2.7。

0 个答案:

没有答案