title: VSCode: Cannot 'import matplotlib'
body: <p>I am trying to use python on VSCode for the first time. I am working on Mac. 
  I have a file plot.py:</p>
  
  <pre class="lang-py prettyprint-override"><code>import matplotlib.pyplot as plt
  import numpy as np
  
  x = np.linspace(0, 20, 100)  # Create a list of evenly-spaced numbers over the range
  plt.plot(x, np.sin(x))       # Plot the sine of each x point
  plt.show() 
  </code></pre>
  
  <p>When I am in the directory with plot.py and, from terminal, run:</p>
  
  <p><code>$python plot.py</code> I get no error and a graph with the desired sine wave opens.</p>
  
  <p>If I run <code>$python3 plot.py</code> I also receive no error.</p>
  
  <p>In VSCode I have the following interpreter options:</p>
  
  <p><a href="https://i.stack.imgur.com/8XERU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8XERU.png" alt=""></a></p>
  
  <p>Regardless of which one I use I get the following error:</p>
  
  <pre><code>[Running] python -u "/Users/ealejo/Documents/PROGRAMS/Visual_CS/Python/plot.py"
  Traceback (most recent call last):
    File "/Users/ealejo/Documents/PROGRAMS/Visual_CS/Python/plot.py", line 1, in &lt;module&gt;
      import matplotlib.pyplot as plt
  ImportError: No module named matplotlib.pyplot
  
  [Done] exited with code=1 in 0.051 seconds
  </code></pre>
  
  <p>I have tried <code>$pip uninstall matplotlib</code> and then  <code>$pip install matplotlib</code>
  I have done the same with pip3.</p>
  
  <p>I have done <code>$conda install matplotlib</code></p>
  
  <p>I have removed matplotlib with `rm -rf makefile``</p>
  
  <p>Nothing seems to fix the problem.</p>