title: ModuleNotFoundError: No module named 'cv2' (only in vscode with venv)
body: <p>When I try to install <strong>opencv-python</strong> I get the following error:</p>
  <p><code>ModuleNotFoundError: No module named 'cv2'</code></p>
  <p>I tried to install cv2 via these commands:</p>
  <p><code>pip install opencv-python</code></p>
  <p><code>pip install opencv-contrib-python</code></p>
  <p><code>pip install opencv-python opencv-python-headless</code></p>
  <p><code>python3 -m pip install opencv-python</code></p>
  <p><code>pip3 install opencv-python --upgrade</code></p>
  <p>However, the problem remains.</p>
  <p>I have noticed that <strong>this problem occurs only in the virtual environment</strong> (venv) of VScode.</p>
  <p>In fact, <strong>if I launch this code from the terminal it does not give me any error</strong> and it returns me the version of <code>cv2</code></p>
  <pre class="lang-py prettyprint-override"><code>import cv2
  print (cv2.__version__)
  </code></pre>
  <p>Reply -&gt; <code>4.6.0</code></p>
  <p>I use <code>Python 3.9</code></p>
  <p><strong>EDIT:</strong></p>
  <p>This is a screenshot of the problem</p>
  <p>The problem do not appear if I create a new venv</p>
  <p><a href="https://i.stack.imgur.com/SbCzp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SbCzp.png" alt="enter image description here" /></a></p>