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:312)
解决办法
下载cudnn64_8.dll
放到cuda对应路径的bin
文件夹里(下面这个是我的路径,你的也许不一样,不要照搬
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin
参考资料
- python - Could not load dynamic library 'cudnn64_8.dll'; dlerror: cudnn64_8.dll not found - Stack Overflow
- RuntimeError: (PreconditionNotMet) The third-party dynamic library (cudnn64_8.dll) that Paddle depends on is not configured correctly. (error code is 126) · Issue #11230 · PaddlePaddle/PaddleOCR · GitHub
- 关于PaddleOCR使用踩坑_no stack trace in paddle, may be caused by externa-CSDN博客
- RuntimeError: (PreconditionNotMet) The third-party dynamic library (cudnn64_7.dll) that Paddle depen_发生异常: runtimeerror (preconditionnotmet) the third--CSDN博客