dlib icon indicating copy to clipboard operation
dlib copied to clipboard

ImportError: Failed to load DLL while importing _dlib_pybind11: The specified module was not found

Open OnlyStopOnTop opened this issue 2 years ago • 1 comments

What Operating System(s) are you seeing this problem on?

Windows

dlib version

19.24.2

Python version

Miniconda 3

Compiler

?

Expected Behavior

Tried to load a dlib DLL

Current Behavior

Got error:

ImportError: Failed to load DLL while importing _dlib_pybind11: The specified module was not found

Steps to Reproduce

Uninstalled and installed dlib 19.24.2

Anything else?

No response

OnlyStopOnTop avatar Jun 09 '23 21:06 OnlyStopOnTop

I had same issue when I compile dlib with CUDA enabled. In my case, the reason is the path of cuDNN.

"C:\Program Files\NVIDIA\CUDNN\v8.9.7.29\lib\cudnn.lib"

"import dlib" failed with that error.

When I move the filed under lib to "x64" as originally from cuDNN,zip

"C:\Program Files\NVIDIA\CUDNN\v8.9.7.29\lib\x64\cudnn.lib"

the problem solved.

mtsnrtkhr avatar Feb 05 '24 12:02 mtsnrtkhr