Molly
Molly

Reputation: 11

Import cv2: ImportError: DLL load failed: windows 7 Anaconda 4.3.0 (64-bit) Python 3.6.0

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

Upvotes: 1

Views: 2210

Answers (3)

Ben
Ben

Reputation: 1

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

Upvotes: 0

Ramesh-X
Ramesh-X

Reputation: 5055

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.

Upvotes: 0

Talha
Talha

Reputation: 1

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

Upvotes: 0

Related Questions