windows10-tensorflow-gpu1.13.1-cuda10.0-cudn7.3.1安装

1.安装cuda之前首先安装vs2015,
安装vs2015教程

要保证有以下vs2015两个组件,如果安装vs2017, Microsoft Visual C++ 2015 Redistributable Update 3 x64组件会被系统删掉,它和Microsoft Visual C++ 2017 Redistributable Update 3 x64不兼容。所以建议安装vs2015,如果装了vs2017,该组件装不上。
We need Visual Studio 2015 stuffs here. If you have installed Visual Studio 2015 or 2017 no problem run the following setup and be okay with instructions on screen Goto https://visualstudio.microsoft.com/vs/older-downloads and move to end you will find “Redistributables and Build Tools” Download and install following

1. Microsoft Visual C++ 2015 Redistributable Update 3 x64
2. Microsoft Build Tools 2015 Update 3  //如果只安装下边这个是可以附带上边的,单独安装上边的我没试

2.安装cuda10.0
if you have already CUDA stuffs other than CUDA 10 then uninstall all one by one from control panel. Go to https://developer.nvidia.com/cuda-downloads and download Installer for Windows [your version][network]. For me, version is Windows 10. I recommend you to use network installer. Install it in default location with default settings. It will update your GPU driver if required.
安装cuda失败参考该教程
上述教程的校正
3.检查cuda是否安装正确
Go to run (Win + R) type cmd The following command will check for nvcc version and insure that it is set in path environment variable.

nvcc --version

You will see something like:

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2018 NVIDIA Corporation
Built on Sat_Aug_25_21:08:04_Central_Daylight_Time_2018
Cuda compilation tools, release 10.0, V10.0.130
Now test a sample to see setup is working by running following Go to run (Win + R) type
"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\extras\demo_suite\nbody.exe"

4.下载cudnn7.3.1
Goto https://developer.nvidia.com/cudnn (Membership required) After login Download the following: cuDNN v7.3.1 Library for Windows [your version] for me Windows 10 Goto downloaded folder and extract cudnn-10.0-windows10-x64-v7.3.1.20.zip Go inside extracted folder and copy all files and folder from cuda folder (eg. Bin, include, lib) and paste to “C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0”.

5.安装tensorflow-gpu
先添加pip清华镜像源,然后在执行以下命令

pip install tensorflow-gpu

6.测试tensorflow-gpu是否安装成功。

import tensorflow as tf
sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))

谢谢老哥解决了我的大问题,注意!不要安装cuda10.1

原文地址:https://blog.csdn.net/eefresher/article/details/88410764
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值