import dll error occurs after successfully installing cv2 in python3.7

asked 2018-10-09 01:01:16 -0600

suriya gravatar image

I get the above error message when I try to import cv2 in python3.7

edit retag flag offensive close merge delete

Comments

os, opencv version ?

what did you install, from where, and how ?

what is the exact errror msg ?

berak gravatar imageberak ( 2018-10-09 01:04:49 -0600 )edit

I installed Python 3.7 in Windows 7 32bit version and installed opencv using command prompt py -m pip install opencv_contrib_python command. It says opencv successfully installed. When I tried import cv2 in python Idle editor i get an error message import dll error : unable to locate...... I get an error message something like this

suriya gravatar imagesuriya ( 2018-10-09 02:50:09 -0600 )edit

try from a plain cmdline, NOT idle first

also: unable to locate what ?

please be as concise as possible, else we can't help !

("something like this" is a waste of anyone's time !)

berak gravatar imageberak ( 2018-10-09 02:57:12 -0600 )edit

Even when I try to import cv2 in cmdline , I get error message like this: File "<stdin>", line 1,in <module> File "C:\Users\INTEL\AppData\Local\Programs\Python\Python37-32\lib\site-packages\cv2__init__.py",line 3, in <module> from .cv2 import * ImportError: DLL load faile: The specified module could not be found.

suriya gravatar imagesuriya ( 2018-10-09 05:25:44 -0600 )edit

please look at the pypi page , the error is mentioned there.

(not an opencv problem, but one with your distribution.)

berak gravatar imageberak ( 2018-10-09 05:38:44 -0600 )edit