Ask Your Question

Revision history [back]

CV2 installed, but Import cv2 on spyder gives an error

Hi, yesterday I tried different approaches to install OpenCV.

when I go to the following directory: "C:\Users\Salvo\Anaconda3\Lib\site-packages\cv2" I can find the package is installed. I have windows 10, python 3.7 installed. when I open Spyder (or also Jupyter notebook) i receive the same error.

import cv2 as cv Traceback (most recent call last):

File "<ipython-input-8-9458db612e9e>", line 1, in <module> import cv2 as cv

File "C:\Users\Salvo\Anaconda3\lib\site-packages\cv2__init__.py", line 3, in <module> from .cv2 import *

ImportError: DLL load failed: he specified module could not be found. which is weird because all the packages are there and inside the cv2 folder I found __init__.py file. Thank you for your help