Click here to Skip to main content
15,042,814 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I can't import cv2 in my Jupyter like this error message below:

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-c8ec22b3e787> in <module>
----> 1 import cv2

~\AppData\Roaming\Python\Python38\site-packages\cv2\__init__.py in <module>
      3 import sys
      4 
----> 5 from .cv2 import *
      6 from .data import *
      7 

ModuleNotFoundError: No module named 'cv2.cv2'



Help me please. Thanks.

What I have tried:

I have install opencv-contrib-python and opencv-python. I use Windows 10 64 Bit
Posted
Updated 30-Jun-21 22:30pm
v2

1 solution

Wherever you have installed opencv, the system cannot find it. Use pip to find out where it is: Quickstart - pip documentation v21.1.3[^].
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900