title: why OpenCV only works with terminal and not VSCode?
body: <p>so I have s simple python code that opens a webcam using opencv.</p>
  <p>it works fine on the terminal but when I try to run it in vscode I get this:</p>
  <pre><code>&gt; Traceback (most recent call last):   File
  &gt; &quot;/Users/salahqamachi/Desktop/testing/ss/camera.py&quot;, line 2, in
  &gt; &lt;module&gt;
  &gt;     import cv2 ImportError: No module named cv2
  </code></pre>
  <p>I am using MacOS Catalina 10.15, python 3.9 (latest from the official website), and vscode with python extension installed.</p>
  <p>I tried:</p>
  <ul>
  <li>uninstalling and reinstalling python, vscode and opencv.</li>
  <li>updating python from terminal.</li>
  <li>added &quot;python.linting.pylintArgs&quot;: [&quot;--generate-members&quot;]&quot; in setting.json in vscode.</li>
  <li>tried using code runner and default vscode's debugging.</li>
  <li>change the python interpreter with command + shift + p</li>
  </ul>
  <p>again, the code works correctly in the terminal, but not in vscode.</p>
  <p>please comment any suggestions on how I can fix it, thanks.</p>