繁体   English   中英

错误:找不到满足 tensorflow==2.1.0 要求的版本,并且未找到 tensorflow==2.1.0 的匹配分布

[英]ERROR: Could not find a version that satisfies the requirement tensorflow==2.1.0 and No matching distribution found for tensorflow==2.1.0

当我运行时,我正在尝试在 Linux 的 Windows 子系统(ubuntu 18.04)上使用“pipenv”

$ pipenv sync

我收到此错误:

[pipenv.exceptions.InstallError]: ['ERROR: Could not find a version that satisfies the requirement 
tensorflow==2.1.0 (from -r /tmp/pipenv-gy0uz1a7-requirements/pipenv-glre38t7-requirement.txt (line 1))
(from versions: 2.2.0rc1, 2.2.0rc2)', 'ERROR: No matching distribution found for tensorflow==2.1.0 
(from -r /tmp/pipenv-gy0uz1a7-requirements/pipenv-glre38t7-requirement.txt (line 1))']

我按照其他一些说明说我必须安装 tensorflow,所以我安装了 tensorflow

$ pip install --upgrade pip
$ pip install tensorflow==2.1.0

即使在安装 tensorflow 2.1.0 之后,我在运行时仍然遇到同样的错误

$ pipenv sync

我应该怎么做才能解决这个问题?

检查您的 python 版本,python 3.8 不支持 TensorFlow 2.1 版本。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM