Install TensorFlow with Python3 on Ubuntu 16.04

The issue is that Ubuntu 16 uses Python3.5 but Tensorflow only provides a wheel for Python 3.4 (indicated by 'cp34' in "tensorflow-0.7.1-cp34-none-linux_x86_64.whl"). Luckily the Wheel is actually compatible with Python 3.5, so you don't need to compile from source.

You need to download the wheel, rename it to prevent the python 3.4 check from failing, and then install by passing the renamed file to pip.

For the current version of Tensorflow (peeps in the future, check the website for the latest version and adapt commands below if necessary) run:

wget https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp34-cp34m-linux_x86_64.whl
mv tensorflow-0.8.0-cp34-cp34m-linux_x86_64.whl tensorflow-0.8.0-cp35-none-linux_x86_64.whl
pip install tensorflow-0.8.0-cp35-none-linux_x86_64.whl

use pip --- for python2 pip3 -- for python3 recommencement to use sudo

pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.10.0-cp35-cp35m-linux_x86_64.whl