Overview
This guide shows how to install and verify TensorFlow. TensorFlow is an end-to-end open source platform for machine learning.
Prerequisites
- Python has been installed
- Optional but recommended. Setup a VirtualEnvironment and Pip has been installed.
Installation
01. Activate your virtual environment, or skip this step if not using virtual environment.
$ source {{virtual-env-directory}}/bin/activate
02. Install the TensorFlow package
(geek-venv) $ pip install tensorflow
If using the GPU version, use the following command
(geek-venv) $ pip install tensorflow-gpu
03. Verify the TensorFlow version
(geek-venv) $ python >>> import tensorflow as tf >>> print(tf.__version__)
04. Congratulations! TensorFlow is now installed and usable.