I have installed OpenCV in C:\Users\M\opencv\opencvversion and opencv-python contrib in C:\Users\M\opencv\opencv-contrib-python-4.9.0.80\opencv-contrib-python-4.9.0.80 where I have the following elements:
enter image description here
The problem is that when in visual studio code: enter image description here
This happends when I select python 3.7 or 3.11 as an interpreted in vscode.
I have check that I have python3 supporten in my opencv downloaded but I don’t know how to make the connection between the python that vscode uses and the files where I have downloaded opencv.
I have tried with different python interpreters
I have tried different solutions but the problem is that I have already installed opencv.
pip install opencv-contrib-python
I had already installed it. It was nothing related with that the problem