Anaconda3+CUDA8.0+CUDNN6.0+Tensorflow-gpu1.4环境搭建(win10)

  • 先安装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:

  1. 参考tensorflow官方文档
    https://tensorflow.google.cn/install/install_windows
  2. 在Anaconda的配置文件中添加清华镜像库,这样下载和更新的速度会快很多
    conda config --addchannels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
    conda config --setshow_channel_urls yes

猜你喜欢

转载自blog.csdn.net/www_minna_com/article/details/83046073