Installing TensorFlow on Windows 10

Ads
 

Installing TensorFlow on Windows 10

In this section we are going to learn to install TensorFlow on Windows 10.

In this section we are going to learn to install TensorFlow on Windows 10.

Steps of Installing TensorFlow on Windows 10

TensorFlow programming language runs on 64 bit of Windows operating system and in this tutorial I will teach you to install it on Windows 10 operating system. You should have 64 Bit of Windows 10 operating system for installing TensorFlow deep learning software.

TensorFlow is deep learning framework from Google and good news it that the software is open source. TensorFlow is written in C++ programming language and available for Windows, Linux and Mac.

TensorFlow only supports 64-bit Python 3.5.x on Windows. Python 3.5.x comes with the pip3 package manager, which is necessary to install and use TensorFlow on Windows.

Visit: https://www.python.org/downloads/release/python-352/ and then click the link "Windows x86 executable installer" or may also download "Windows x86-64 executable installer".

Video: Installing TensorFlow on Windows 10

We have downloaded "Windows x86 executable installer" https://www.python.org/ftp/python/3.5.2/python-3.5.2.exe

After download install it.

Then open command prompt.

Check python version by typing:

python --version

Now close command prompt.

Then command prompt as administrator.

Then type:

pip3 install --upgrade tensorflow

to install TensorFlow on your Windows 10 box.

Here is the log of installation process:

Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>pip3 install --upgrade tensorflow
Collecting tensorflow
  Downloading tensorflow-1.3.0-cp35-cp35m-win_amd64.whl (25.5MB)
    100% |################################| 25.5MB 24kB/s
Collecting six>=1.10.0 (from tensorflow)
  Downloading six-1.10.0-py2.py3-none-any.whl
Collecting protobuf>=3.3.0 (from tensorflow)
  Downloading protobuf-3.4.0-py2.py3-none-any.whl (375kB)
    100% |################################| 378kB 640kB/s
Collecting wheel>=0.26 (from tensorflow)
  Downloading wheel-0.30.0-py2.py3-none-any.whl (49kB)
    100% |################################| 51kB 819kB/s
Collecting numpy>=1.11.0 (from tensorflow)
  Downloading numpy-1.13.1-cp35-none-win_amd64.whl (7.8MB)
    100% |################################| 7.8MB 70kB/s
Collecting tensorflow-tensorboard<0.2.0,>=0.1.0 (from tensorflow)
  Downloading tensorflow_tensorboard-0.1.6-py3-none-any.whl (2.2MB)
    100% |################################| 2.2MB 300kB/s
Collecting setuptools (from protobuf>=3.3.0->tensorflow)
  Downloading setuptools-36.5.0-py2.py3-none-any.whl (478kB)
    100% |################################| 481kB 598kB/s
Collecting werkzeug>=0.11.10 (from tensorflow-tensorboard<0.2.0,>=0.1.0->tensorflow)
  Downloading Werkzeug-0.12.2-py2.py3-none-any.whl (312kB)
    100% |################################| 317kB 644kB/s
Collecting html5lib==0.9999999 (from tensorflow-tensorboard<0.2.0,>=0.1.0->tensorflow)
  Downloading html5lib-0.9999999.tar.gz (889kB)
    100% |################################| 890kB 413kB/s
Collecting markdown>=2.6.8 (from tensorflow-tensorboard<0.2.0,>=0.1.0->tensorflow)
  Downloading Markdown-2.6.9.tar.gz (271kB)
    100% |################################| 276kB 685kB/s
Collecting bleach==1.5.0 (from tensorflow-tensorboard<0.2.0,>=0.1.0->tensorflow)
  Downloading bleach-1.5.0-py2.py3-none-any.whl
Installing collected packages: six, setuptools, protobuf, wheel, numpy, werkzeug, html5lib, markdown, bleach, tensorflow-tensorboard, tensorflow
  Found existing installation: setuptools 20.10.1
    Uninstalling setuptools-20.10.1:
      Successfully uninstalled setuptools-20.10.1
  Running setup.py install for html5lib ... done
  Running setup.py install for markdown ... done
Successfully installed bleach-1.5.0 html5lib-0.9999999 markdown-2.6.9 numpy-1.13.1 protobuf-3.4.0 setuptools-36.5.0 six-1.10.0 tensorflow-1.3.0 tensorflow-tensorboard-0.1.6 werkzeug-0.12.2 wheel-0.30.0
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

C:\WINDOWS\system32>

You should also install Microsoft Visual C++ 2015 Redistributable Update 3 if it is not installed on your computer.

Testing tensorflow. Open command prompt and then type:

python

then run following code:

import tensorflow as tf

# Initialize two constants
x1 = tf.constant([1,2])
x2 = tf.constant([5,6])

# Multiply
result = tf.multiply(x1, x2)

# Print the result
print(result)

In this tutorial we learned to install TensorFlow on Windows 10 operating system.   

Ads

Ads