This guide shows how to install and verify TensorFlow. TensorFlow is an end-to-end open source platform for machine learning.





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.

Previous In Tech We Trust?
Next Artificial Intelligence Has A Gender Bias Problem – Just Ask Siri