anaconda自行在官网下载或者在清华镜像库中下载(推荐清华镜像库,速度快)
cuda8.0+cudnn百度云连接:链接:https://pan.baidu.com/s/1Nap5uSZRbVkP1yLYFwFYlQ
提取码:moea
tensorflow安装:
anaconda创建环境:conda create -n tensorflow-gpu python=3.5
(新建一个叫做tensorflow-gpu的运行环境)
activate tensorflow-gpu(激活环境)
python -m pip install --upgrade pip(先升级pip)
之后开始安装:
pip install tensorflow-gpu==1.8(数字自己看着来)
安装完成后测试:
在命令行中,进入python,并输入以下代码:
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))
输出:
b’ Hello, TensorFlow!
---------------------
参考:https://blog.csdn.net/weixin_39290638/article/details/80045236