The installation of TensorFlow is straightforward in an environment where Python is installed. Depending on whether you have a GPU or not, you can use the following code:
sudo pip install tensorflow
You can also use the following:
sudo pip install tensorflow-gpu
Next, we will see a couple of examples.