TensorFlow not found using pip
I found this to finally work.
python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl
Edit 1: This was tested on Windows (8, 8.1, 10), Mac and Linux. Change
python according to your configuration. Change
py2 in the url if you are using Python 2.x.
Edit 2: A list of different versions if someone needs: https://storage.googleapis.com/tensorflow
Edit 3: A list of urls for the available wheel packages is available here:https://www.tensorflow.org/install/pip#package-location
You need a 64-bit version of Python and in your case are using a 32-bit version. As of now Tensorflow only supports
64-bit versions of Python 3.5.x and 3.8.x on Windows. See the install docs to see what is currently supported
To check which version of Python you are running, type
python3 to start the interpreter, and then type
import struct;print(struct.calcsize("P") * 8) and that will print either
64 to tell you which bit version of Python you are running.
To download a different version of Python for Windows, go to python.org/downloads/windows and scroll down until you see the version you want that ends in a "64". That will be the 64 bit version that should work with tensorflow
You need to use the right version of Python and
On Windows 10, with Python 3.6.X version I was facing the same problem, then after checking deliberately I noticed I had the Python-32 bit installation on my 64 bit machine. Remember TensorFlow is only compatible with 64bit installation of Python, not the 32 bit version of Python
If we download Python from python.org, the default installation would be 32 bit. So we have to download the 64 bit installer manually to install Python 64 bit. And then add below to
gpupdate /Force on command prompt. If the Python command doesn't work for 64 bit then restart your machine.
Then run python on command prompt. It should show 64 bit.
C:\Users\YOURNAME>pythonPython 3.6.3 (v3.6.3:2c5fed8, Oct 3 2017, 18:11:49) [MSC v.1900 64 bit (AMD64)] on win32Type "help", "copyright", "credits" or "license" for more information.
Then run below command to install tensorflow CPU version (recommended)
pip3 install --upgrade tensorflow
October 2020 update:
Tensorflow now supports Python 3.5.x through Python 3.8.x, but you still have to use a 64-bit version.
If you need to run multiple versions of Python on the same machine, you can use a virtual environment to help manage them.