How to Install TensorFlow on Ubuntu 16

How to Install TensorFlow on Ubuntu 16

A step-by-step guide on how to install TensorFlow on Ubuntu 16.04. TensorFlow is an open-source software library for numerical computation using data flow graphs.

Check out our new video:


Before you install TensorFlow, make sure that your system has NVIDIA® driver and Cuda™ toolkit 8.0 installed. Verify by checking the version of the NVIDIA® driver and the Cuda™ Toolkit.

If you have not installed the CUDA™ Toolkit, refer to for installation instructions.

There are two ways to install TensorFlow on Ubuntu 16: with Anaconda or without it. We recommend installing TensorFlow with Anaconda, a popular Python distribution that includes many of the most common data science packages.

What is TensorFlow?

TensorFlow is a powerful open-source machine learning platform. It was originally developed by Google and is now used by major tech companies such as Facebook, IBM, and Netflix. TensorFlow can be used to build custom algorithms or to tap into pre-built ones.

Why use TensorFlow?

TensorFlow is an open source platform for machine learning. It has a large community and is used by many companies for both research and development. TensorFlow is available on multiple platforms, including Windows, Mac, and Linux. In this guide, we will show you how to install TensorFlow on Ubuntu 16.04.

TensorFlow on Ubuntu 16

This guide explains how to install TensorFlow on Ubuntu 16.04 LTS. It also provides instructions for installing CUDA on Ubuntu.

TensorFlow is an open source machine learning framework for everyone. It has a comprehensive, flexible ecosystem of tools, libraries and community resources that lets researchers push the state-of-the-art in ML and developers easily build and deploy ML powered applications.

CUDA is a parallel computing platform and programming model developed by Nvidia for general computing on its own line of graphics processing units (GPUs). With CUDA, developers are able to dramatically speed up computing applications by harnessing the power of GPUs.

These instructions are intended for installing TensorFlow on a single Ubuntu 16.04 server. If you are looking to install TensorFlow on a cluster of servers, see the Installing TensorFlow on distributed systems guide.

Before you begin
1. Update Ubuntu’s package index:
$ sudo apt-get update 2. Upgrade any existing packages:

$ sudo apt-get upgrade

Installing TensorFlow

TensorFlow is an open source software library for numerical computation using data flow graphs. Nodes in the graph represent mathematical operations, while the edges represent the multidimensional data arrays (tensors) that flow between them. This flexible architecture enables you to deploy computation to one or more CPUs or GPUs in a desktop, server, or mobile device with a single API.

Installing TensorFlow on Ubuntu 16 is easy. The following steps will walk you through the process.

1. First, you will need to install pip, a tool for installing Python packages. To do this, open a terminal and enter the following command:

sudo apt-get install python-pip python-dev

2. Next, download the TensorFlow installation package using pip:

sudo pip install – upgrade

3. Once the download is complete, you can verify your installation by opening a Python shell and entering the following command:
import tensorflow as tf
If there are no errors, then TensorFlow has been successfully installed on your system.

Configuring TensorFlow

In order to keep this tutorial clear and simple, we will only cover installation on a single machine. If you require more horsepower, you may want to consider configuring TensorFlow on a GPU.

We will be using the following tools in this tutorial:
-Python 3

If you do not have Python 3 installed on your system, please follow these instructions before proceeding.

1) Update your system repositories.
“`sudo apt-get update“`
2) Install python 3 and pip3.
“`sudo apt-get install python3 python3-pip“`
3) Verify installation by checking the versions of Python and pip.
“`python3 – version && pip3 – version“`

Running TensorFlow

In order to run TensorFlow on your system, you will need to install it first. The latest version of TensorFlow (as of this writing) is 1.3.0, which can be found on the TensorFlow website. To install it, simply download the .whl file for your system and follow the instructions below.


1) Download the .whl file from the TensorFlow website.

2) Install TensorFlow by running the following command:

pip install /path/to/tensorflow-1.3.0-cp27-none-linux_x86_64.whl

3) Verify that TensorFlow is installed by opening a Python shell and running the following commands:

import tensorflow as tf

Using TensorFlow

TensorFlow is an open source software library for machine learning that was developed by Google. It can be used for a wide variety of tasks, such as image classification, natural language processing, and even creating self-driving cars. While TensorFlow can be used on a variety of platforms, including Windows, macOS, and even mobile devices, it’s most commonly used on Linux. In this guide, we’ll show you how to install TensorFlow on an Ubuntu 16 machine.

Before we begin, there are a few things you’ll need to have in order to follow along:

-A recent version of Ubuntu (16 or higher)
-A computer with at least 4 GB of RAM
-An Internet connection

Now that we have all of that out of the way, let’s get started!


If you’re having trouble installing TensorFlow on Ubuntu 16, it might be due to missing dependencies or a conflict with another package. Try the following troubleshooting tips:

-Make sure you have all the dependencies installed by running “sudo apt-get install python-pip python-dev”

-If you’re still having trouble, try upgrading pip by running “sudo pip install – upgrade pip”

-If you’re using Anaconda, try creating a new environment with TensorFlow installed by running “conda create -n tensorflow python=3.5”


Congratulations, you have now installed TensorFlow on your Ubuntu 16 machine!

Keyword: How to Install TensorFlow on Ubuntu 16

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top