Ubuntu
This guide explains how to install TensorFlow on Ubuntu.
Prerequisite: Python and Pip
Python is automatically installed on Ubuntu. Take a moment to confirm (by issuing a python -V
command) that one of the following Python versions is already installed on your system:
Python 2.7
Python 3.4+
Install TensorFlow
Assuming the prerequisite software is installed on your Linux host, take the following steps:
Install TensorFlow by invoking one of the following commands:
$ pip install tensorflow # Python 2.7; CPU support (no GPU support) $ pip3 install tensorflow # Python 3.n; CPU support (no GPU support) $ pip install tensorflow-gpu # Python 2.7; GPU support
Uninstalling TensorFlow
To uninstall TensorFlow, issue one of following commands:
$ sudo pip uninstall tensorflow # for Python 2.7
$ sudo pip3 uninstall tensorflow # for Python 3.n
Last updated
Was this helpful?