Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing tensorflow on windows

I'm trying to install tensorflow on windows. I have python3 (3.5.2) and pip3 (9.0.1):

pip3 install --upgrade tensorflow

Collecting tensorflow

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

Found this issue here as well: tensorflow not found in pip but none of the solutions worked for me. Any ideas?

like image 878
YSchiff Avatar asked Mar 28 '17 12:03

YSchiff


People also ask

Can TensorFlow be used on Windows?

On Windows, TensorFlow can be installed via either "pip" or "anaconda". Python comes with the pip package manager, so if you have already installed Python, then you should have pip as well. The package can install TensorFlow together with its dependencies.

How do I install keras TensorFlow on Windows?

In general, there are two ways to install Keras and TensorFlow: Install a Python distribution that includes hundreds of popular packages (including Keras and TensorFlow) such as ActivePython. Use pip to install TensorFlow, which will also install Keras at the same time.


Video Answer


2 Answers

Try the following at a Python command prompt:

import platform
platform.architecture()[0]

It should display '64bit' Just having an x86 version of Python isn't enough. I had the same problem. Thought I had a 64 bit installation but it turned out to be 32 bit.

BTW. it will also work fine with the Conda Python 3.6 distribution. And indeed use the distro from the Gohlke page as indicated by Guillaume Jacquenot.

like image 56
Jacques de Hooge Avatar answered Oct 15 '22 07:10

Jacques de Hooge


You can download binary wheel from Christoph Gohlke's webpage

Once downloaded, you can run pip install tensorflow‑1.0.1‑cp35‑cp35m‑win_amd64.whl for Python 3.5 64 bit

like image 35
Guillaume Jacquenot Avatar answered Oct 15 '22 07:10

Guillaume Jacquenot