How to install tensorflow-gpu for both python2 and python3
If you have already installed tensorflow 1.2, CUDA 8.0 and CuDNN 5.1 for python2.7. Then you can:

yum install python3-pip

(now you have python3 and pip3, however the python version may not be 3.5)

python3 -m pip install --upgrade tensorflow-gpu==1.2

(make sure the installed version is exactly same as that of python2)
I made it after these two steps.
I already have installed tensorflow 1.2, CUDA 8.0 and CuDNN 5.1 for python2.7. Now I want to use it for python3.5 but importing tensorflow fails. How do I install tensorflow for python3 again. And do I have to do the CUDA and CuDNN episodes again?