- 先安装Anaconda3,创建一个环境tensorflow-gpu,指定python版本为3.5:
conda create -n tensorflow-gpu python=3.5 - 安装CUDA8.0和CUDNN6.0
- 安装版本为1.4的tensorflow(当然是在tensorflow-gpu环境下安装)
pip install --ignore-installed --upgrade tensorflow-gpu==1.4
Tips:
- 参考tensorflow官方文档
https://tensorflow.google.cn/install/install_windows - 在Anaconda的配置文件中添加清华镜像库,这样下载和更新的速度会快很多
conda config --addchannels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --setshow_channel_urls yes