简体   繁体   English

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

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

Please Help me out.请帮帮我。 I have installed tensorflow 2.3 globally and am trying to install tensorflow 1.15 but always face this error.我已经在全球范围内安装了 tensorflow 2.3 并尝试安装 tensorflow 1.15 但总是遇到此错误。 I tried uninstalling tensor globally but failed.我尝试全局卸载张量但失败了。

(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. As stated here: https://www.tensorflow.org/install/pip Python3.8 is not compatible with Tensorflow 1.x but only with Tensorflow 2.x.

You should create a new python environment with an older python version (like 3.6.9) and then install Tensorflow 1.15 if that's what you need.您应该使用较旧的 python 版本(如 3.6.9)创建一个新的 python 环境,然后安装 Tensorflow 1.15(如果您需要的话)。

For uninstalling tensorflow:卸载 tensorflow:

pip uninstall tensorflow

Upgrade pip using this command:使用以下命令升级 pip:

pip install --upgrade pip

Installing tensorflow 1.15 using this command:使用以下命令安装 tensorflow 1.15:

pip install tensorflow==1.15.0

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

相关问题 在导入 tensorflow 的过程中,每次都会出现这个错误。我确实尝试过卸载然后重新安装。它仍然给出同样的错误 - During the importing of tensorflow this error came up everytime.I did tried to uninstall and then install it again .It still gives the same error 我无法安装 Tensorflow 版本 1.15 到 pip - I cannot install Tensorflow Version 1.15 through pip RPI:无法安装张量流==1.15 - RPI: Cannot install tensorflow==1.15 我尝试使用 pip install django 安装 django 但我仍然收到此错误任何评论 - I tried to install django using pip install django but still i am getting this error any comments 如何在带有 venv 的 Docker 映像中安装 tensorflow? - How do I install tensorflow in a Docker image w/ venv? 无法安装 TensorFlow 版本 1.15 或更早版本 - Not able to install the TensorFlow version 1.15 or earlier version 当我安装 tensorflow 1.15 时,我不断面临这样的警告 - When I install my tensorflow 1.15 then I am facing such warning continuously 在 Tensorflow 1.15 中导出干涉图时出错 - Error while exporting interference graph in Tensorflow 1.15 Tensorflow 1.15 没有加载冻结图,过去一周给了我同样的错误 - Tensorflow 1.15 is not loading frozen graph, and has given me the same error for the past week 尝试使用 Conda 安装 TensorFlow 1.15 但总是得到 1.9.0 - Trying to Install TensorFlow 1.15 using Conda but always getting 1.9.0
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM