完美解决ImportError: Could not find ‘cudart64_90.dll‘. TensorFlow requires that this DLL be installed in

完美解决ImportError: Could not find ‘cudart64_90.dll‘. TensorFlow requires that this DLL be installed in_人工智能


文章目录

  • 报错问题
  • 解决方法
  • 声明


报错问题

之前在工作中遇到过这个坑,记录一下问题以及解决方法,不一定针对所有情况都能用,但是可以供大家参考。
问题描述如下:

ImportError: Could not find ‘cudart64_90.dll‘. TensorFlow requires that this DLL be installed in

导入错误:找不到“cudart64_90.dll”。TensorFlow要求将此dll安装在%Path%环境变量中命名的目录中。从以下网址下载并安装CUDA 9.0:https://developer.nvidia.com/cuda-toolkit

完美解决ImportError: Could not find ‘cudart64_90.dll‘. TensorFlow requires that this DLL be installed in_Cuda_02

解决方法

完美解决ImportError: Could not find ‘cudart64_90.dll‘. TensorFlow requires that this DLL be installed in_Cuda_03


缺少dll文件,有两种情况

T1、重新安装Cuda及Cudnn
推荐文章:CV:Win10下深度学习框架安装之Tensorflow+Cuda+Cudnn(最清楚/最快捷)之详细攻略(图文教程)

T2、安装tensorflow

pip install tensorflow-gpu==1.4.0

完美解决ImportError: Could not find ‘cudart64_90.dll‘. TensorFlow requires that this DLL be installed in_python_04

声明

解决方法参考网络,如有侵权联系我删除