so I have s simple python code that opens a webcam using opencv.

it works fine on the terminal but when I try to run it in vscode I get this:

```
> Traceback (most recent call last):   File
> "/Users/salahqamachi/Desktop/testing/ss/camera.py", line 2, in
> <module>
>     import cv2 ImportError: No module named cv2

```

I am using MacOS Catalina 10.15, python 3.9 (latest from the official website), and vscode with python extension installed.

I tried:

* uninstalling and reinstalling python, vscode and opencv.
* updating python from terminal.
* added "python.linting.pylintArgs": ["--generate-members"]" in setting.json in vscode.
* tried using code runner and default vscode's debugging.
* change the python interpreter with command + shift + p

again, the code works correctly in the terminal, but not in vscode.

please comment any suggestions on how I can fix it, thanks.