Showing posts with label tensorflow. Show all posts
Showing posts with label tensorflow. Show all posts

Friday, 21 April 2017

[Tensorflow] How to install Tensorflow in windows

1. Install Python 3.5.x and PIP





2. Installing with native pip

for CPU-only version
C:\> pip3 install --upgrade tensorflow

for GPU version
C:\> pip3 install --upgrade tensorflow-gpu






3. Installing with Anaconda

3.1. download Anaconda and install

https://www.continuum.io/downloads




3.2. Create a conda environment named tensorflow by invoking the following command

C:> conda create -n tensorflow



3.3. Activate the conda environment


C:> activate tensorflow




3.4.  Install TensorFlow inside your conda environment

for CPU-only version
C:> pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.1-cp35-cp35m-win_amd64.whl

for GPU version
C:> pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-1.0.1-cp35-cp35m-win_amd64.whl




3. Validate installation



[Tensorflow] Tensorflow is not supported in Python 3.6.x

Tensorflow is not supported and installed in Python 3.6.x not yet.





[Tensorflow] Could not find a version that satisfies the requirement tensorflow (fromversion: )

When I install Tensorflow using pip command, 'Could not find a version that satisfies the requirement tensorflow (fromversion: )' error occurs.




This error is because python is not suitable my platform.

My platform is Windows 10 on x86 64bit. But a python that is installed is for windows on x86 32bit.




So, Install 64bit python.




Successfully installed