The Python Oracle

Could not find a version that satisfies the requirement tensorflow

--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 2

--

Chapters
00:00 Could Not Find A Version That Satisfies The Requirement Tensorflow
00:58 Answer 1 Score 38
01:28 Accepted Answer Score 270
01:56 Answer 3 Score 85
02:33 Answer 4 Score 47
02:52 Thank you

--

Full question
https://stackoverflow.com/questions/4872...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #python3x #python27 #tensorflow #pip

#avk47



ACCEPTED ANSWER

Score 270


The latest requirements for running TensorFlow are documented in the installation documentation.

  • TensorFlow only supports 64-bit Python

  • TensorFlow only supports certain versions of Python (for example, Python 3.6 is not supported)

So, if you're using an out-of-range version of Python (older or newer) or a 32-bit version, then you'll need to use a different version.




ANSWER 2

Score 85


There are a few important rules to install Tensorflow:

  • You have to install Python x64. It doesn't work with x86/32b and it gives the same error as yours.

  • Python versions later than 3.8 and Python 3.8 requires TensorFlow 2.2 or later. Check for supported Python versions.

For example, for TensorFlow 2.9, you can install Python3.8.6-64bit and it works like a charm. Check the latest information on the website.




ANSWER 3

Score 47


if you are using anaconda, python 3.7 is installed by default, so you have to downgrade it to 3.6:

conda install python=3.6

then:

pip install tensorflow

it worked for me in Ubuntu.




ANSWER 4

Score 38


I am giving it for Windows

If you are using python-3

  1. Upgrade pip to the latest version using py -m pip install --upgrade pip
  2. Install package using py -m pip install <package-name>

If you are using python-2

  1. Upgrade pip to the latest version using py -2 -m pip install --upgrade pip
  2. Install package using py -2 -m pip install <package-name>