paddlepaddle (飞桨)安装错误:RuntimeError: (PreconditionNotMet) The third-party dynamic library (cudnn64_8.

问题描述:

paddlepaddle (飞桨)安装错误:RuntimeError: (PreconditionNotMet) The third-party dynamic library (cudnn64_8._第1张图片

 报错信息:

D:\anaconda\envs\paddle\python.exe E:/TEST/main.py
W0112 11:05:38.400643 15268 gpu_resources.cc:61] Please NOTE: device: 0, GPU Compute Capability: 6.1, Driver API Version: 12.0, Runtime API Version: 11.2
W0112 11:05:38.403635 15268 dynamic_loader.cc:276] Note: [Recommend] copy cudnn into CUDA installation directory. 
 For instance, download cudnn-10.0-windows10-x64-v7.6.5.32.zip from NVIDIA's official website, 
then, unzip it and copy it into C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0
You should do this according to your CUDA installation directory and CUDNN version.
Traceback (most recent call last):
  File "E:/TEST/main.py", line 2, in 
    print(paddle.utils.run_check())
  File "D:\anaconda\envs\paddle\lib\site-packages\paddle\utils\install_check.py", line 266, in run_check
    _run_static_single(use_cuda, use_xpu, use_npu)
  File "D:\anaconda\envs\paddle\lib\site-packages\paddle\utils\install_check.py", line 170, in _run_static_single
    exe.run(startup_prog)
  File "D:\anaconda\envs\paddle\lib\site-packages\paddle\fluid\executor.py", line 1299, in run
    six.reraise(*sys.exc_info())
  File "D:\anaconda\envs\paddle\lib\site-packages\six.py", line 719, in reraise
    raise value
  File "D:\anaconda\envs\paddle\lib\site-packages\paddle\fluid\executor.py", line 1285, in run
    res = self._run_impl(
  File "D:\anaconda\envs\paddle\lib\site-packages\paddle\fluid\executor.py", line 1510, in _run_impl
    return self._run_program(
  File "D:\anaconda\envs\paddle\lib\site-packages\paddle\fluid\executor.py", line 1607, in _run_program
    self._default_executor.run(program.desc, scope, 0, True, True,
RuntimeError: (PreconditionNotMet) The third-party dynamic library (cudnn64_8.dll) that Paddle depends on is not configured correctly. (error code is 126)
  Suggestions:
  1. Check if the third-party dynamic library (e.g. CUDA, CUDNN) is installed correctly and its version is matched with paddlepaddle you installed.
  2. Configure third-party dynamic library environment variables as follows:
  - Linux: set LD_LIBRARY_PATH by `export LD_LIBRARY_PATH=...`
  - Windows: set PATH by `set PATH=XXX; (at ..\paddle\phi\backends\dynload\dynamic_loader.cc:303)

Running verify PaddlePaddle program ... 

Process finished with exit code 1

解决方法:

找到下载好的CUDNN文件,下载网站https://developer.nvidia.com/rdp/cudnn-archive,BIN中的dll文件

paddlepaddle (飞桨)安装错误:RuntimeError: (PreconditionNotMet) The third-party dynamic library (cudnn64_8._第2张图片

 复制到C:\Windows\System32中。

paddlepaddle (飞桨)安装错误:RuntimeError: (PreconditionNotMet) The third-party dynamic library (cudnn64_8._第3张图片

 再次运行测试,成功

paddlepaddle (飞桨)安装错误:RuntimeError: (PreconditionNotMet) The third-party dynamic library (cudnn64_8._第4张图片

你可能感兴趣的:(yolov5安装问题解决,paddlepaddle,人工智能)