[英]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.