Anaconda环境下安装tensorflow

pip 使用北外源

pip install pip -U --user
pip config set global.index-url https://mirrors.bfsu.edu.cn/pypi/web/simple

conda create -n tf python=3.7
pip install tensorflow-gpu==1.13.1
pip install tensorflow-gpu==1.13.1 -i https://pypi.douban.com/simple —trusted-host=pypi.douban.com

Tensorflow对应的CUDA及cuDNN版本

使用的tensorflow是1.13.1版本,应该装10.0的cuda和7.4的cuDNN
image.png

下载Tensorflow的whl版本

https://pypi.tuna.tsinghua.edu.cn/simple/tensorflow-gpu/