Installing tensorflow with anaconda in windows

Ahmad picture Ahmad · May 10, 2016 · Viewed 119.8k times · Source

I have installed Anaconda on Windows 64 bit. I have downloaded PyCharm for creating a project and in the terminal of PyCharm I have installed numpy, scipy, matplotlib using the following commands:

conda install numpy
conda install scipy
conda install matplotlib

I am not able to install Tensorflow in the same way I installed these other packages. How should I install it?

Answer

Muhammad Hannan picture Muhammad Hannan · Dec 1, 2016

Google has recently launched a newer version of Tesnsorflow r0.12 which include support of Windows both CPU and GPU version can now be installed using Python >=3.5.2 (only 64-bit) version.

For CPU only version open command prompt and enter follow command

pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl

Follow this Tensorflow on Windows for step by step instructions.

UPDATE

To install current latest version please run following command:

pip install tensorflow #CPU only
pip install tensorflow-gpu #For GPU support

UPDATE 2020

Tensorflow 2.0 now has a single package for both CPU and GPU version, simply run

pip install tensorflow

If your're using Anaconda you can install Tensorflow GPU version and all of its dependencies (CUDA, cuDNN) by running:

conda install -c tensorflow-gpu