错误:找不到满足tensorflow == 2.1.0要求的版本,并且找不到针对tensorflow == 2.1.0的匹配发行版

时间:2020-03-30 12:19:01

标签: python linux tensorflow ubuntu pipenv

我试图在Linux的Windows子系统上使用'pipenv'(ubuntu 18.04) 当我跑步

$ 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

我该怎么做才能解决此问题?

1 个答案:

答案 0 :(得分:0)

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