1、安装anaconda (最好使用清华源下载)
2、打开cmd
conda create -n tensorflow pip python=3.6
activate tensorflow
pip install --ignore-installed --upgrade tensorflow-gpu -i https://pypi.tuna.tsinghua.edu.cn/simple
3、装CUDA9.0
https://pan.baidu.com/s/1VnKrq5X7n1nBvQzkuX8ihA?errno=0&errmsg=Auth%20Login%20Sucess&&bduss=&ssnerror=0&traceid=#list/path=%2F
CUDA9.0 安装目录D:UsersYZJAppDataLocalTempCUDA
将cuDNN解压。将解压出来的三个文件夹下面的文件放到对应的CUDA相同文件夹下
以上完成之后把以下四个路径加入到环境变量中:
C:Program FilesNVIDIA GPU Computing ToolkitCUDAv9.0in
C:Program FilesNVIDIA GPU Computing ToolkitCUDAv9.0libnvvp
C:Program FilesNVIDIA GPU Computing ToolkitCUDAv9.0lib
C:Program FilesNVIDIA GPU Computing ToolkitCUDAv9.0include
右击我的电脑-管理-高级设置-环境变量
4、anaconda 安装opencv
conda install -c menpo opencv