title: Getting a Module Not Found error in PyCharm IDE while using matplotlib
body: <p>I am using Python 3.9 in windows OS.
  I recently installed matplotlib using the following command in command prompt:</p>
  <pre><code>cd C:\Users\user\AppData\Local\Programs\Python\Python39
  python -m pip install matplotlib
  </code></pre>
  <p>(was following the instructions from the video: <a href="https://www.youtube.com/watch?v=9RdLbrTI_3A&amp;t=97s" rel="nofollow noreferrer">https://www.youtube.com/watch?v=9RdLbrTI_3A&amp;t=97s</a>)</p>
  <p>I was trying to run a simple code:</p>
  <pre><code>from matplotlib import pyplot as plt
  plt.plot([1,2,3],[4,5,1])
  plt.show()
  </code></pre>
  <p>This code was working perfectly fine in Idle. But when I switched to PyCharm IDE, there is this error:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;C:\Users\user\PycharmProjects\DataVisualization\Test.py&quot;, line 1, in &lt;module&gt;
      from matplotlib import pyplot as plt
  ModuleNotFoundError: No module named 'matplotlib'
  </code></pre>
  <p>What went wrong here?</p>