The Python Oracle

Could not find a version that satisfies the requirement tensorflow

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Beneath the City Looping

--

Chapters
00:00 Question
01:10 Accepted answer (Score 245)
01:46 Answer 2 (Score 101)
01:58 Answer 3 (Score 82)
02:41 Answer 4 (Score 45)
03:09 Thank you

--

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

Accepted answer links:
[installation documentation]: https://www.tensorflow.org/install/pip

Answer 3 links:
[supported Python versions]: https://www.tensorflow.org/install/pip

--

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>