TensorFlow anaconda清华源安装

1、
安装anaconda,从anaconda清华源地址 下载比较快,安装anaconda,然后

conda create -n tensorflow pip python=2.7

2、

source activate tensorflow

3、
TensorFlow清华源网址
去网站中找到自己python对应版本的以及自己想要的TensorFlow版本,

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、
然后实验

import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))

5、备用地址

猜你喜欢

转载自blog.csdn.net/u013548568/article/details/79945181