机器学习:
1、vs环境的搭建,安装 vs2010;
2、安装cuda,安装包 cuda_8.0.44_win10.exe;
3、安装cudnn,将cudnn目录下文件夹中的文件复制到cuda安装目录下对应的目录下,安装包 cudnn-8.0-windows10-x64-v6.0;
4、cmd下使用nvcc -V 检测cuda是否安装成功;
5、 从anaconda下进入anaconda prompt ,添加清华的镜像源,并安装python3.5
添加清华的镜像源:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --set show_channel_urls yes
安装:conda create -n tensorflow Python=3.5
激活:activate TensorFlow
关闭:deactivate
6、安装TensorFlow(指定版本)
pip install --upgrade https://mirrors.tuna.tsinghua.edu.cn/tensorflow/windows/gpu/tensorflow_gpu-1.2.1-cp35-cp35m-win_amd64.whl
7、测试
import tensorflow as tf hello = tf.constant("Hello!TensorFlow") sess = tf.Session() print(sess.run(hello))
参考文章:
https://www.cnblogs.com/hear-nothing/p/7464882.html
注意:安装TensorFlow-gpu的过程中,一定要注意各个软件之间的依赖关系