安装 windows GPU tensorflow

  •  
  • 仅供参考:小白的电脑没有出现很难解决错误的问题
  •  https://blog.youkuaiyun.com/weixin_41550544/article/details/82221406  --------tensorflow -gpu安装,史上最新最
  •                                                                                                         简单的途径(不用自己装cuda,cdnn)

 前提: ①  anaconda  Python 3.7.3

              ② Visual  包

                

 

          tensorflow各个版本的CUDA以及Cudnn版本对应关系:

                 https://blog.youkuaiyun.com/qq_35239859/article/details/79827203

 

第一步:安装 CUDA 9.0    安装地址   只用装     Base Installer

         https://developer.nvidia.com/cuda-90-download-archive?target_os=Windows&target_arch=x86_64&target_version=10&target_type=exelocal   

 第二步:安装  tensorflow-gpu 1.14.0

              conda命令行: conda install -c anaconda tensorflow-gpu

              参考 :https://anaconda.org/anaconda/tensorflow-gpu 

              优点:该命令会自动安装 cudnn 并配置 环境变量

 

第三步:验证

import tensorflow as tf
import numpy as np
print(np.array([1,2,33,5]))
sess = tf.Session()
a = tf.constant(1)
b = tf.constant(2)
print(sess.run(a + b))

 出现以下代码 配置成功

 

参考文章:

                   https://blog.youkuaiyun.com/weixin_34041003/article/details/91118527   ------ Windows安装TensorFlow-GPU流程

                  https://blog.youkuaiyun.com/StardustYu/article/details/82955104    ------ Windows下安装Tensorflow-gpu(踩坑无数)

                  https://blog.youkuaiyun.com/ccnucb/article/details/79873460   -------- Visual Studio 版本问题

                  https://www.cnblogs.com/fanfzj/p/8521728.html    ---------- 

                   https://blog.youkuaiyun.com/kele52he/article/details/82986900   ------python+tensorflow+tensorflow-                             

                                            gpu+CUDA+cuDNN+pycharm全套环境配置教程

                  https://www.cnblogs.com/fanfzj/p/8521728.html   ---------   tensoflow-gpu安装 

 

二、问题: CUDA安装失败

             参考 :https://blog.youkuaiyun.com/Jasmine_z_s/article/details/87622371

              ① win7安装cuda9时出现图形驱动程序安装失败,解决办法是右键计算机>管理>服务和应用程序>服务>找到“Windows Installer”,右键选择“启动”

              ② 安装的时候选择自定义安装,    https://blog.youkuaiyun.com/Jasmine_z_s/article/details/87622371

              ③ 不用 在线 安装模式,用本地安装

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值