TensorFlow anaconda Tsinghua source installation

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))

5. Alternate address

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325675387&siteId=291194637