ImportError: No module named 'cv2' using jupyter

You can type

which jupyter-notebook

if it's not in the envs of opencv-python installed, you should install jupyter in the envs:

condda install jupyter-notebook

If you have already installed opencv, then its possible that your notebook and your opencv library are in 2 different python environments. The following has helped me in the past:

  1. Open your notebook
  2. In an new cell type:

!pip install opencv-python

Note, that the ! is deliberate. This will install open-cv in your current notebook environment.