安装PYCharm,安装ANICONDA5.0,一直确定.安装CUDA 9.0,把cudnn-9.0-windows10-x64-v7.5.0.56的三个文件夹覆盖这个路径下的文件
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0
- conda create -n tensorflow python=3.6
- activate tensorflow
- pip install tensorflow-gpu==1.6.0
测试代码:
import tensorflow as tf
hello = tf.constant(‘hello,TensorFlow!’)
sess = tf.Session()
print(sess.run(hello))
pip3 list查看安装程序
path中环境变量
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\libnvvp
D:\Anaconda3-5.0.1
D:\Anaconda3-5.0.1\Library\mingw-w64\bin
D:\Anaconda3-5.0.1\Library\usr\bin
D:\Anaconda3-5.0.1\Library\bin
D:\Anaconda3-5.0.1\Scripts
C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\extras\CUPTI\libx64
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\lib\x64