0

I am tryin to do a project that requires cv2 module. I downloaded the library through windows command prompt. pip install cv2module it installed successfully. but, when i try to import it on pycharm or python IDLE it throws an error like ImportError: DLL load failed while importing cv2: The specified module could not be found.

MarkHenri
  • 47
  • 1
  • 4

2 Answers2

0

Install contrib version opencv

pip install opencv-contrib-python
Sivaram Rasathurai
  • 5,533
  • 3
  • 22
  • 45
0

I was facing missing DLL issue.

  1. I deleted cv2 and openCV folder from the Python\Python38\Lib\site-packages\ folder in my system. 2.Installed Media feature pack on windows 10 from Optional features settings. 3.Then ran pip install opencv-python again.
  2. Rebooted my system and import cv2 worked like a charm.