(下載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