Ask Your Question

Revision history [back]

No module named 'cv2' but opencv is installed

Hey Guys, i've installed opencv-python using pip and tried to run a code that uses opencv in Visual Studio Code. I can't run the code, everytime I try to run it, i get this error message:

Traceback (most recent call last): File "c:/Users/Marius/Entwicklung/local_light_absorber/opencv_test.py", line 1, in <module> import cv2 ModuleNotFoundError: No module named 'cv2'

I know there are already questions in this forum dealing with this problem but none of them helped me. Can you please help me so I can run my code?