ModuleNotFoundError No Module Named Cv2

22.1K    Asked by AndreaBailey in Python , Asked on Nov 16, 2022

 I am getting this modulenotfounderror: no module named 'cv2'

when I tried to import the cv2 module in jupyter notebook.

import cv2

ModuleNotFoundError                       Traceback (most recent call last)


----> 1 import cv2

ModuleNotFoundError: No module named 'cv2'

Answered by Alison Kelly

Regarding modulenotfounderror no module named cv2 This error may occur if you didn't install opencv module in your system. So first check this module is available or not.

$ pip list or conda list
If it is not available, then install this module.
$ pip install opencv-python or conda install opencv-python
But before that, try to check numpy module is available or not. If numpy is not available, then install this first.
$ pip install numpy
Hope this will solve your error.

Your Answer


Parent Categories