I\'m trying to import cv2 on Jupyter notebook but I get this error:
ImportError: No module named cv2
I am
pip install opencv-python
This solved the error for me in MacOS.
It is because of opencv library. Try running this command in anaconda prompt:
conda install -c conda-forge opencv
Is your python path looking in the right place? Check where python is looking for the module. Within the notebook try:
import os
os.sys.path
Is the cv2
module located in any of those directories? If not your path is looking in the wrong place. If it is overlooking the install location, append it to your python path. You can follow the instructions here.