Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I cannot install Tensorflow Version 1.15 through pip

Tags:

python

pip

conda

I have checked my pip version and got the following output:

Requirement already up-to-date: pip in  ./anaconda3/envs/runlee_python3/lib/python3.8/site-packages (20.1) 

I have a specific situation in which I have to use version 1.15 of Tensorflow, but when I try to install it, it seems like it can‘t find this specific version.

pip install 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) ERROR: No matching distribution found for tensorflow==1.15 

I can also not find version 1.15 when listing all available options.

What am I missing?

like image 970
runRyan Avatar asked Apr 28 '20 23:04

runRyan


People also ask

Could not find a version that satisfies the requirement TensorFlow == 1.15 5?

Tensorflow is only working with 64-bit version of Python. If you are using 32-bit version of Python then you have to face this error. So That Just use install the 64-bit version of Python latest version via Python's website.

What version of Python is compatible with TensorFlow?

TensorFlow is tested and supported on the following 64-bit systems: Python 3.7–3.10. Ubuntu 16.04 or later. Windows 7 or later (with C++ redistributable)

How to install TensorFlow in Python?

Actually the easiest way to install tensorflow is: install python 3.5 (not 3.6 or 3.7) you can check wich version you have by typing "python" in the cmd. When you install it check in the options that you install pip with it and you add it to variables environnement. When its done just go into the cmd and tipe "pip install tensorflow".

How do I install the TensorFlow pip package?

Install the TensorFlow pip package Missed ML Community Day? Watch all the sessions on demand View sessions Was this helpful? 1. Install the Python development environment on your system 2. Create a virtual environment (recommended) 3. Install the TensorFlow pip package tf-nightly —Preview build (unstable). Ubuntu and Windows include GPU support.

What is the final version of TensorFlow for 1xx?

Description of issue (what needs changing): It says tensorflow 1.15 is final version for 1xx versions yet pip install 1.15 returns this “$ pip3 install tensorflow==1.15 Collecting tensorflow==1.15

How do I diagnose a problem with TensorFlow?

Provide the exact sequence of commands / steps that you executed before running into the problem Run command: pip install tensorflow==1.15 Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback.


1 Answers

You are using python 3.8, which was not officially supported when tensorflow was at version 1.15. You can also check on pypi, there are no files available for cp38, even for 2.10 Onle the versions listed by your command have a cp38 whl file available, see here

Since you have conda, simply create a virtual env with the required version

conda create -n tf python=3.7 

then install tensorflow in this env

like image 199
FlyingTeller Avatar answered Sep 23 '22 17:09

FlyingTeller