0
votes

so, i was trying to import cv2 to my jupyter notebook.

but it said

ModuleNotFoundError
Traceback (most recent call last) in ----> 1 import cv2

ModuleNotFoundError: No module named 'cv2'

i already installed it using the command : pip install opencv-python I'm on MacOS Catalina, please help me.

1

1 Answers

0
votes

Do you have more than one python version installed? If so, make sure you are using the python interpreter you think you use for your notebook. Run

!pip freeze

in your notebook to check if opencv-python is really listed as an installed package. if not install it for that version or

Change Interpreter in Jupyter notebook