Anaconda+Tensorflow环境安装与配置
tensorflow镜像以及CPU版安装
https://mirrors.tuna.tsinghua.edu.cn/help/tensorflow/
1.下载Python 100+ Packages(建议安装anaconda)
anaconda安装简单,不再赘述。
2. GPU支持(只使用CPU忽略)
(1) cuDNN
The NVIDIA CUDA® Deep Neural Network library (cuDNN) is a GPU-accelerated library of primitives for
deep neural networks
. cuDNN provides highly tuned implementations for standard routines such as forward and backward convolution, pooling, normalization, and activation layers. cuDNN is part of the
NVIDIA Deep Learning SDK
.
解压:
添加环境变量:
D:\cudnn-8.0-windows7-x64-v5.1\cuda\bin;
D:\cudnn-8.0-windows7-x64-v5.1\cuda\include;
D:\cudnn-8.0-windows7-x64-v5.1\cuda\lib\x64
(2) CUDA
CUDA安装比较简单,不再赘述。
3.安装TensorFlow
4.验证成功安装
python->import tensorflow
看到5个successful表示安装成功