![](/img/trans.png)
[英]ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none) ERROR: No matching distribution found for tensorflow)
[英]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.