1.
Install anaconda, download it from the source address of anaconda Tsinghua University , install anaconda, and then
conda create -n tensorflow pip python=2.7
2、
source activate tensorflow
3.
TensorFlow Tsinghua source website
Go to the website to find the corresponding version of python and the version of TensorFlow you want,
pip install \
-i https://pypi.tuna.tsinghua.edu.cn/simple/ \
https://mirrors.tuna.tsinghua.edu.cn/tensorflow/linux/gpu/tensorflow_gpu-1.4.0-cp27-none-linux_x86_64.whl
4.
Then experiment
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))