Mitanshu Reshamwala
Mitanshu Reshamwala

Reputation: 45

Install tensorflow on windows python 3.6

Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow

This message is shown when I try to pip install. I have tried it with python 3.7 when it didn't work. I also tried it with 3.6 and I still tensorflow can't install it.

Upvotes: 2

Views: 767

Answers (2)

rayryeng
rayryeng

Reputation: 104555

Try using Christoph Gohlke's packages: https://www.lfd.uci.edu/~gohlke/pythonlibs/#tensorflow

Download the package for Python 3.6, then use pip install on the package:

pip install tensorflow‑1.9.0‑cp36‑cp36m‑win_amd64.whl

Note that you will need the NumPy + MKL packages and the Protobuf packages that can be downloaded from Christoph Gohlke's website as well.

Make sure you choose the Python 3.6 version. You can determine this by looking at the numbers after the cp in the filename (i.e. cp36).... so what you'll actually need to do is download the three wheels, then install them in the following order:

pip install numpy‑1.16.3+mkl‑cp36‑cp36m‑win_amd64.whl
pip install protobuf‑3.7.1‑cp36‑cp36m‑win_amd64.whl
pip install tensorflow‑1.9.0‑cp36‑cp36m‑win_amd64.whl

Note: I'm assuming you're using a 64-bit version of Windows which is the default type for many Windows installations.

Upvotes: 2

NS0
NS0

Reputation: 6116

Try to install it using the following command

python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.13.1-py3-none-any.whl

Upvotes: 0

Related Questions