title: Problems with importing Python library in VSC
body: <p>I installed two Python libraries using <em>pip</em> in Visual Studio Code:</p>
  
  <ol>
  <li>Pillow,</li>
  <li>opencv - python. </li>
  </ol>
  
  <p>Both installations were successful and they can be seen after the command <em>pip list</em>.<br>
  <a href="https://i.stack.imgur.com/wtWnf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wtWnf.png" alt="pip list"></a></p>
  
  <p>I have a problem however when I try to import these libraries. My code is very simple</p>
  
  <pre><code>from PIL import Image
  </code></pre>
  
  <p>or in the second case</p>
  
  <pre><code>import cv2
  </code></pre>
  
  <p>Unfortunately neither the first one nor the second one works. I get the following error
  <a href="https://i.stack.imgur.com/zuIGH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zuIGH.png" alt="cv2 error"></a>
  <a href="https://i.stack.imgur.com/gd4Dc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gd4Dc.png" alt="PIL error"></a></p>
  
  <p>I use Visual Studio Code, v.1.29.1</p>