Install TensorFlow Python Library

In this tutorial, we shall learn to install TensorFlow Python Neural Network Library on Ubuntu.

Prerequisites

We shall use Anaconda distribution of Python for developing Deep Learning Applications with TensorFlow.

So, we shall Install Anaconda Python.

Install TensorFlow

To install TensorFlow python library, open a Terminal and run the following pip command.

$ pip install tensorflow

Console/Terminal Output

~$ pip install tensorflow
Collecting tensorflow
  Downloading tensorflow-1.4.1-cp36-cp36m-manylinux1_x86_64.whl (41.2MB)
    100% |????????????????????????????????| 41.2MB 20kB/s 
Requirement already satisfied: numpy>=1.12.1 in /usr/lib/anaconda3/lib/python3.6/site-packages (from tensorflow)
Requirement already satisfied: six>=1.10.0 in /usr/lib/anaconda3/lib/python3.6/site-packages (from tensorflow)
Requirement already satisfied: wheel>=0.26 in /usr/lib/anaconda3/lib/python3.6/site-packages (from tensorflow)
Collecting protobuf>=3.3.0 (from tensorflow)
  Downloading protobuf-3.5.0.post1-cp36-cp36m-manylinux1_x86_64.whl (6.4MB)
    100% |????????????????????????????????| 6.4MB 80kB/s 
Collecting enum34>=1.1.6 (from tensorflow)
  Downloading enum34-1.1.6-py3-none-any.whl
Collecting tensorflow-tensorboard<0.5.0,>=0.4.0rc1 (from tensorflow)
  Downloading tensorflow_tensorboard-0.4.0rc3-py3-none-any.whl (1.7MB)
    100% |????????????????????????????????| 1.7MB 108kB/s 
Requirement already satisfied: setuptools in /usr/lib/anaconda3/lib/python3.6/site-packages (from protobuf>=3.3.0->tensorflow)
Collecting html5lib==0.9999999 (from tensorflow-tensorboard<0.5.0,>=0.4.0rc1->tensorflow)
  Downloading html5lib-0.9999999.tar.gz (889kB)
    100% |????????????????????????????????| 890kB 153kB/s 
Collecting bleach==1.5.0 (from tensorflow-tensorboard<0.5.0,>=0.4.0rc1->tensorflow)
  Downloading bleach-1.5.0-py2.py3-none-any.whl
Collecting markdown>=2.6.8 (from tensorflow-tensorboard<0.5.0,>=0.4.0rc1->tensorflow)
  Downloading Markdown-2.6.10.zip (414kB)
    100% |????????????????????????????????| 419kB 220kB/s 
Requirement already satisfied: werkzeug>=0.11.10 in /usr/lib/anaconda3/lib/python3.6/site-packages (from tensorflow-tensorboard<0.5.0,>=0.4.0rc1->tensorflow)
Building wheels for collected packages: html5lib, markdown
  Running setup.py bdist_wheel for html5lib ... done
  Stored in directory: /home/arjun/.cache/pip/wheels/6f/85/6c/56b8e1292c6214c4eb73b9dda50f53e8e977bf65989373c962
  Running setup.py bdist_wheel for markdown ... done
  Stored in directory: /home/arjun/.cache/pip/wheels/1e/5a/55/a80b200d12e234d575ad68c1528593d1ce488720b65b24e48c
Successfully built html5lib markdown
Installing collected packages: protobuf, enum34, html5lib, bleach, markdown, tensorflow-tensorboard, tensorflow
  Found existing installation: html5lib 0.999999999
    Uninstalling html5lib-0.999999999:
      Successfully uninstalled html5lib-0.999999999
  Found existing installation: bleach 2.0.0
    Uninstalling bleach-2.0.0:
      Successfully uninstalled bleach-2.0.0
Successfully installed bleach-1.5.0 enum34-1.1.6 html5lib-0.9999999 markdown-2.6.10 protobuf-3.5.0.post1 tensorflow-1.4.1 tensorflow-tensorboard-0.4.0rc3

Conclusion

TensorFlow Python Library is successfully installed.