title: ModuleNotFoundError: No module named 'matplotlib'
body: <p>I'm trying to run a python program that requires matplotlib, which I've already installed via pip. I am running Python 3.6 locally on my Mac, with my .bash_profile updated to reflect this. The import line in question is as seen below:</p>
  
  <pre><code>import matplotlib.pyplot as plt
  </code></pre>
  
  <p>Below is the error message I see, as you can figure out from the subject line:</p>
  
  <pre><code>ModuleNotFoundError: No module named 'matplotlib'
  </code></pre>
  
  <p>And here's what I see if I try <code>pip install matplotlib</code>:</p>
  
  <pre><code>Requirement already satisfied: matplotlib in /usr/local/lib/python3.6/site-packages
  Requirement already satisfied: python-dateutil in /usr/local/lib/python3.6/site-packages (from matplotlib)
  Requirement already satisfied: numpy&gt;=1.7.1 in /usr/local/lib/python3.6/site-packages (from matplotlib)
  Requirement already satisfied: pyparsing!=2.0.0,!=2.0.4,!=2.1.2,!=2.1.6,&gt;=1.5.6 in /usr/local/lib/python3.6/site-packages (from matplotlib)
  Requirement already satisfied: cycler&gt;=0.10 in /usr/local/lib/python3.6/site-packages (from matplotlib)
  Requirement already satisfied: pytz in /usr/local/lib/python3.6/site-packages (from matplotlib)
  Requirement already satisfied: six&gt;=1.10 in /usr/local/lib/python3.6/site-packages (from matplotlib)
  </code></pre>
  
  <p>I've referenced a few other posts like <a href="https://stackoverflow.com/questions/18176591/importerror-no-module-named-matplotlib-pyplot">this</a> and <a href="https://stackoverflow.com/questions/11815538/how-to-import-matplotlib-in-python">this</a>, but without much luck. Am I overlooking an answer that I just didn't follow through with, or could it be something else? Your time is appreciated.</p>