Step 1: 

Open terminal .Copy and paste the following lines of code into the terminal window one line at a time. Then Press Enter. 

sudo apt-get update
 

sudo apt-get dist-upgrade

 

sudo apt install python3-dev python3-pip

sudo pip3 install -U virtualenv 

virtualenv googybot

cd googybot

source bin/activate

sudo apt install libatlas-base-dev
 

 pip install --upgrade tensorflow

Test it!
 

import tensorflow as tf

hello = tf.constant('Hello, TensorFlow!')
 

sess = tf.Session()
 

print(sess.run(hello))