Skip to content
Advertisement

Import “cv2” could not be resolved

I’ve installed python and opencv by using the correct commands in the cmd, but when I type in ‘import cv2’ in a python then I get the error in visual studio code and I can’t find any solution online how to fix this

JavaScript

More of the error in the terminal

JavaScript

Advertisement

Answer

I noticed that Visual Studio does not support the latest Python 3.8, so I had to use PyCharm as an IDE.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement