CS Electrical And Electronics
@cselectricalandelectronics

ImportError: DLL load failed: The specified module could not be found.

All QuestionsCategory: Artificial Intelligence, Machine Learning, & Deep LearningImportError: DLL load failed: The specified module could not be found.
CS Electrical And Electronics Staff asked 3 years ago

How to fix this error? I am using Jupyter
 

!pip install opencv-python


Collecting opencv-python
  Downloading https://files.pythonhosted.org/packages/33/c9/484c03aa576f2e0ad4d1e8b98128b376c13698e729cb875003730dd648f7/opencv_python-4.4.0.46-cp37-cp37m-win_amd64.whl (33.5MB)
Requirement already satisfied: numpy>=1.14.5 in c:\programdata\anaconda3\lib\site-packages (from opencv-python) (1.16.2)
Installing collected packages: opencv-python
Successfully installed opencv-python-4.4.0.46


import numpy as np
import matplotlib
import cv2
from matplotlib import pyplot as plt
%matplotlib inline


---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-12-f0bf904db36f> in <module>
      1 import numpy as np
      2 import matplotlib
----> 3 import cv2
      4 from matplotlib import pyplot as plt
      5 get_ipython().run_line_magic('matplotlib', 'inline')

C:\ProgramData\Anaconda3\lib\site-packages\cv2\__init__.py in <module>
      3 import sys
      4 
----> 5 from .cv2 import *
      6 from .data import *
      7 

ImportError: DLL load failed: The specified module could not be found.


How to fix this error?