title: Cannot import numpy or matplotlib in Pycharm
body: <p>So I have no clue why this is happening. I've installed all the dependencies through cmd using <code>python -m pi install -U (dependencies)</code> and in PyCharm's interpreter settings I have installed them as well and I can clearly see they are added to the project interpreter. But whenever I try and import them into my code, I get an 'unused import statement error' with the code being greyed out.</p>
  
  <p>The files are definitely there. I've tried re-installing them a second time and CMD confirms that they are already installed.</p>
  
  <p>I am using the latest PyCharm build (non beta) JetBrains PyCharm Community Edition 2018.2.4 x64. And Python 3.7. My installation directory is C:\Python 3.7\ and in site-packages directory I can clearly see the files in there.</p>
  
  <p>Simple Motion Detection Program (without imported dependencies implemented into code):</p>
  
  <pre><code>from __future__ import division
  import cv2
  from matplotlib import pyplot as plt
  import numpy as np
  from math import cos, sin
  
  first_frame = None
  
  video = cv2.VideoCapture(0)
  
  a = 1
  
  while True:
      a = a + 1
  
      check, frame = video.read()
      print(frame)
  
      gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
      gray = cv2.GaussianBlur(gray, (21, 21), 0)
  
      if first_frame is None:
          first_frame = gray
          continue
  
      delta_frame = cv2.absdiff(first_frame, gray)
  
      thresh_delta = cv2.threshold(delta_frame, 40, 255, cv2.THRESH_BINARY)[1]
  
      erode = cv2.erode(thresh_delta, None, iterations=1)
  
      dilate = cv2.dilate(erode, None, iterations=1)
  
      (_, cnts, _) = cv2.findContours(dilate.copy(), cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)
  
      for contour in cnts:
          if cv2.contourArea(contour) &lt; 200:
              continue
  
          (x, y, w, h) = cv2.boundingRect(contour)
          cv2.rectangle(frame, (x, y), (x+w, y+h), (0, 255, 0), 2)
  
      cv2.imshow('captureFrame', frame)
      cv2.imshow('captureGrey', gray)
      cv2.imshow('delta', delta_frame)
      cv2.imshow('thresh', thresh_delta)
      cv2.imshow('dilate', dilate)
  
      key = cv2.waitKey(1)
  
      if key == ord('q'):
          break
  
  print(a)
  video.release()
  cv2.destroyAllWindows()
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/r8evz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/r8evz.png" alt="interpriter"></a></p>
  
  <p><a href="https://i.stack.imgur.com/vXcDy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vXcDy.png" alt="error"></a></p>
  
  <p><a href="https://i.stack.imgur.com/7f7he.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7f7he.png" alt="site-packages"></a></p>