I am trying to install opencv on my laptop but I keep getting ImportError: DLL load failed while importing cv2: The specified module could not be found.
I tried installing installing with conda install -c conda-forge opencv
in an anaconda env.
But I also get the same result if I use my normal python 3.10 interpreter with opencv-python
and opencv-contrib-python
.
I also tried to compile the module myself but cv2.cp310-win_amd64
gives me the same error as well...
Isnt there just an prebuild binary I can use? or should I look for an different ML module?
Yesterday when I came home I tried installing opencv-python
on my personal computer. And it worked instantly. I have an GTX 1070 in that pc and an RTX A1000 in the work laptop I need opencv on. So I tought that the cuda cores might not be supported or something.
I found this tutorial https://machinelearningprojects.net/build-opencv-with-cuda-and-cudnn/
But after installing the Nvidia SDK, cudnn and compiling opencv from source I still get the same error.
Even with appending the opencv output folder and the cuda sdk bin folder to python's dll_path.
Disabling BUILD_SHARED_LIBS
as suggested in here also does nothing....
https://forum.opencv.org/t/opencv-w-cuda-build-seems-successful-but-import-cv2-fails/11328/3