title: import cv2 in python in vs code not working
body: <p>The python code I wanted to run:</p>
  <pre><code>import cv2
  print(cv2.__verion__)  
  </code></pre>
  <p>The Error code I am getting:</p>
  <pre><code>Windows PowerShell
      Copyright (C) Microsoft Corporation. All rights reserved.
      
      Try the new cross-platform PowerShell https://aka.ms/pscore6
      
      PS D:\Programme\Visual Studio\New Projects&gt; &amp; C:/Users/Florian/AppData/Local/Programs/Python/Python310/python.exe &quot;d:/Programme/Visual Studio/New Projects/Python/opencv_test.py&quot;
      Traceback (most recent call last):
        File &quot;d:\Programme\Visual Studio\New Projects\Python\opencv_test.py&quot;, line 1, in &lt;module&gt;
          import cv2
      ModuleNotFoundError: No module named 'cv2'
  </code></pre>
  <p>But if I type the exact same code in the Terminal it works:</p>
  <pre><code>    PS D:\Programme\Visual Studio\New Projects&gt; python
      Python 3.9.9 (tags/v3.9.9:ccb0e6a, Nov 15 2021, 18:08:50) [MSC v.1929 64 bit (AMD64)] on win32
      Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
      &gt;&gt;&gt; import cv2
      &gt;&gt;&gt; print(cv2.__version__)
      4.5.4
      &gt;&gt;&gt;
  </code></pre>
  <p>So far I installed python via Command Prompt and via Microsoft Store.
  And currently I am running the verion 3.9.9</p>
  <pre><code>PS D:\Programme\Visual Studio\New Projects&gt; python --version
  Python 3.9.9
  </code></pre>
  <p>I installed opencv in the Command Prompt:</p>
  <pre><code>PS C:\Users\Florian&gt; pip install opencv-python
  Requirement already satisfied: opencv-python in c:\users\florian\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (4.5.4.60)
  Requirement already satisfied: numpy&gt;=1.19.3 in c:\users\florian\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from opencv-python) (1.21.5)
  PS C:\Users\Florian&gt;
  </code></pre>
  <p>I searched every Forum I could think of, but cant find a fix.</p>
  <p>Please help</p>