(下载cuDNN须要先注册NVIDIA开发帐户并登陆才能看到下载界面)python
CUDA 9 要TF 1.5版本才支持windows
注意windows tf 仅支持 python 3.5code
为了不以后使用 pip 安装 tf 报错,请先在cmd运行如下代码 pip install --ignore-installed --upgrade pip setuptools
以后安装tfpip install tensorflow-gpu==1.1.0
ip
接来下检验安装是否成功开发
import tensorflow as tf hello = tf.constant('Hello, TensorFlow!') sess = tf.Session() print(sess.run(hello))
另外,若是用conda的话必定要注意python版本,目前最高支持3.5get
conda create --name tensorflow python=3.5 activate tensorflow pip install tensorflow-gpu
原文做者: filwalinecmd