Installing TensorFlow on Ubuntu 16.04 LTS

Installing TensorFlow is not a tedious task if you have a fast Internet connection. The main tool we need to have is pip. It is a package management system used to install and manage software packages written in Python.

You may get latest installation instruction for Linux from following link: https://www.tensorflow.org/install/install_linux

Here is the command to install pip on Ubuntu:

    $ sudo apt-get install python-pip python-dev

After installing pip, you have to execute the following command to set a BASH variable called TF_BINARY_URL. This is for installing the correct binaries for our configuration. The following variable is for the Ubuntu 64 bit, Python 2.7, CPU only version:

    $ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0-cp27-none-linux_x86_64.whl ...

Get ROS Programming: Building Powerful Robots now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.