How to solve "ERROR: No matching distribution found for tensorflow==1.12.0"

How to solve "ERROR: No matching distribution found for tensorflow==1.12.0"

我正在尝试安装 tensorflow 1.12.0。这是我正在使用的命令 pip install tensorflow==1.12.0。我从这个 link 得到这个命令。这是我遇到的错误。

ERROR: Could not find a version that satisfies the requirement tensorflow==1.12.0 (from versions: 2.5.0rc0, 2.5.0rc1, 2.5.0rc2, 2.5.0rc3, 2.5.0) ERROR: No matching distribution found for tensorflow==1.12.0

我做错了什么?

您可以直接从 Github 发布页面安装以前版本的 Tensorflow。例如1.12.0版本可以在https://github.com/tensorflow/tensorflow/releases/tag/v1.12.0.

下载

我的 python 版本是 3.9。安装 python 版本 3.6 解决了这个问题。我用conda安装在虚拟环境中。