Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot install TensorFlow 1.x

I am trying to install Tensorflow 1.14 for a package that I am trying to use. I tried: pip3 uninstall tensorflow

Then I tried to install Tensorflow 1.14 using: pip3 install tensorflow==1.14

and I get the following error ERROR: Could not find a version that satisfies the requirement tensorflow==1.14 (from versions: 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2) ERROR: No matching distribution found for tensorflow==1.14

I also tried making a new virtual env and tried the following commands but it didn't work. Is there any way to install Tensorflow 1?

like image 948
Ndev99 Avatar asked Jul 23 '20 17:07

Ndev99


People also ask

How do I fix tensorflow error?

The Python "ModuleNotFoundError: No module named 'tensorflow'" occurs when we forget to install the tensorflow module before importing it or install it in an incorrect environment. To solve the error, install the module by running the pip install tensorflow command.


2 Answers

What I've found on discourse:

You just need to make sure you’re using Python 3.5, 3.6 or 3.7. TensorFlow 1.15 does not support Python 3.8

like image 116
bohdan_trotsenko Avatar answered Oct 17 '22 06:10

bohdan_trotsenko


It works for me to install 1.x tensorflow with the following command:

pip3 install https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.14.0-py3-none-any.whl
like image 5
Siwei Luo Avatar answered Oct 17 '22 06:10

Siwei Luo