In some instances,
pip can have problems trying to correctly detect the python version and so can cause problems.
So for Tensorflow, if you wish to use Python2, then use
sudo pip install --upgrade $TF_BINARY_URL
and for Python3:
sudo pip3 install --upgrade $TF_BINARY_URL
More details available on Tensorflow's Download and Setup page
Also, as Tensorflow has a GUI outpit, check out this page: GUI based output