title: "ModuleNotFoundError". How to get my python to identify where the module is installed?
body: <p>I've installed python on my system (MacOS) using homebrew and I'm using SublimeText as a texteditor to run a simple file. </p>
  
  <p>The code I am trying to run is </p>
  
  <pre><code>import matplotlib.py as plt
  
  squares = [1, 4, 9, 16, 25]
  plt.plot(squares)
  plt.show()
  </code></pre>
  
  <p>I have installed matplotlib, through running the following code </p>
  
  <pre><code>pip3 install --user matplotlib
  </code></pre>
  
  <p>I get the following error</p>
  
  <pre><code>Traceback (most recent call last):
  File "/Users/MYNAME/pythonprojects/project2datavisualization/mp_squares.py", line 1, in &lt;module&gt;
  import matplotlib.py as plt
  ModuleNotFoundError: No module named 'matplotlib.py'
  [Finished in 0.4s with exit code 1]
  [cmd: ['/usr/local/bin/python3', '-u',      '/Users/MYNAME/pythonprojects/project2datavisualization/mp_squares.py']]
  [dir: /Users/MYNAME/pythonprojects/project2datavisualization]
  [path: /usr/local/bin:“/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin”’]
  </code></pre>
  
  <p>Clearly, my editor doesn't know where to find matplotlib. How do I configure it in such a way so that it does?</p>