I started this exercise by studying the URL listed below:
https://www.tensorflow.org/install/install_linux#installing_with_native_pip
Then I installed Python 3.6.4 under my home-folder:
cd ~/Downloads/
wget https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tar.xz
tar xf Python-3.6.4.tar.xz
cd Python-3.6.4/
./configure --prefix=${HOME}/py36
make
make install
cd ~/py36/bin/
ln -s python3.6 python
ln -s pip3.6 pip
export PATH=${HOME}/py36/bin:$PATH
which pip
which python
Next, I installed TensorFlow 1.7 with GPU CUDA cuDNN support:
pip install tensorflow-gpu