前言
配置环境花了一天,也踩了一些坑,有幸有很多前人资料以供参考,自己也写一篇安装过程以帮助后来者。在此之前,做些简要的说明:
- 本文仅记录本人环境搭建过程,不保证具有可复制性
- 由于环境更新换代比较快,网上很多旧的博客参考性不大,最好找官方教程或较新博客
- 切勿轻信一家之言,综合多个信息源往往可以事半功倍
Anaconda安装
下载网址:https://www.anaconda.com/distribution/
安装过程中的 Advanced Options 两个我都没有勾选:第一个勾,环境变量我是在安装后手动配置的;第二个勾,tensorflow1.12不支持Python3.7,随后手动配置即可。
环境变量如下,自行修改:
- C:\MyProgram\Anaconda
- C:\MyProgram\Anaconda\Scripts
- C:\MyProgram\Anaconda\Library\bin
在cmd中输入 conda -V
显示版本号说明配置成功。
安装CUDA和cuDNN
tensorflow官方gpu支持:https://tensorflow.google.cn/install/gpu
tensorflow与