Tensorflow坑之:ImportError: Could not find ‘cudnn64_7.dll‘.

在尝试导入TensorFlow时遇到ImportError,提示找不到cudnn64_7.dll。解决方法包括确保安装了与Python和CUDA版本匹配的cuDNN,并将dll文件复制到CUDA安装目录。下载cuDNN 7,解压并正确放置文件后,重新验证TensorFlow GPU版导入是否成功。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题描述:

ImportError: Could not find ‘cudnn64_7.dll’. TensorFlow requires that this DLL be installed in a directory that is named in your %PATH% environment variable. Note that installing cuDNN is a separate step from installing CUDA, and this DLL is often found in a different directory from the CUDA DLLs. You may install the necessary DLL by downloading cuDNN 7 from this URL: https://developer.nvidia.com/cudnn

解决方案:

说明还是缺少东西。
注意自己所对应的版本,本人是Python3.7.4.cuda10.0.
对应官网下载自己的版本

活该,早点老老实实用CPU版本的,嘛问题都没有,然而我们对技术的追求就要做到极致,继续搞环境。

继续下载 cuDNN7,如果之前安装的是 CUDA9,那就要下载与之对应的cuDNN版本,不然还是无法使用,我这里下载的是官方配套的7.0.5版本。

这个地址可能需要注册登录NVIDIA。

https://developer.nvidia.com/rdp/cudnn-download#a-collapse705-9

下面的

评论 10
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值