繁体   English   中英

我创建了一个 venv 并尝试安装 tensorflow 1.15 但仍然是同样的错误

[英]I created a venv and tried to install tensorflow 1.15 but still the same error

请帮帮我。 我已经在全球范围内安装了 tensorflow 2.3 并尝试安装 tensorflow 1.15 但总是遇到此错误。 我尝试全局卸载张量但失败了。

(Cardiac) C:\venvCardiac>pip install tensorflow==1.15
Collecting tensorflow==1.15
  ERROR: Could not find a version that satisfies the requirement tensorflow==1.15 (from versions: 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.2.1, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0, 2.3.1, 2.4.0rc0, 2.4.0rc1, 2.4.0rc2, 2.4.0rc3, 2.4.0rc4)
ERROR: No matching distribution found for tensorflow==1.15

As stated here: https://www.tensorflow.org/install/pip Python3.8 is not compatible with Tensorflow 1.x but only with Tensorflow 2.x.

您应该使用较旧的 python 版本(如 3.6.9)创建一个新的 python 环境,然后安装 Tensorflow 1.15(如果您需要的话)。

卸载 tensorflow:

pip uninstall tensorflow

使用以下命令升级 pip:

pip install --upgrade pip

使用以下命令安装 tensorflow 1.15:

pip install tensorflow==1.15.0

暂无
暂无

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

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