2
votes

I am using Anaconda 4.3.0 (64-bit) Python 3.6.0 on windows 7. I am getting the error "ImportError: DLL load failed: The specified module could not be found." for importing the package import cv2.

I have downloaded the OpenCV package and copy paste cv2.pyd into the Anaconda site package and updated my system path to point to OpenCV bin path to get the DLL. Still I am not able resolve this issue.

I did another way to install using pip install opencv-python. Still not working.

Please need suggestions. Thank you

3
Try this command on the anaconda command prompt conda install -c menpo opencv3=3.2.0 Jeru Luke
Thank you Jeru Luke. I was able to resolve this issue by a alternate way Windows-only .whl pip install OpenCV 3 which was suggested at the site (scivision.co/install-opencv-python-windows)Molly
tky for mentioning itJeru Luke

3 Answers

0
votes

use python 2.7.1.0 instead of python 3, cv2 worked and dll load error fixed after using python 2.7

0
votes

You can refer to the answer I posted here and install official or unofficial versions of opencv into your system. The problem you are getting is a problem with the Anaconda. Issue is also posted in github.

0
votes

I had the same issue- However open cv was running fine, after installing some other packages and updating I got the DLL load failed when I tried to import cv2

I fixed this by typing in the conda prompt:

pip intall opencv-contrib-python