title: Matplotlib won't upgrade using pip
body: <p>I am trying to <code>upgrade</code> <code>matplotlib</code>. I'm doing this via <code>!pip</code> and it seems to work. When I check the list in the <code>IPython console</code>:</p>
  
  <pre><code>!pip list
  </code></pre>
  
  <p>It returns the latest version of <code>matplotlib</code></p>
  
  <pre><code>matplotlib 3.0.2 
  </code></pre>
  
  <p>But when I check the version in the editor it returns</p>
  
  <pre><code>2.2.2
  </code></pre>
  
  <p>The very first line in the text editor shows </p>
  
  <pre><code> #!/usr/bin/env python3
  </code></pre>
  
  <p>When inserting <code>!which pip</code> and <code>!which python</code> into the <code>IPython</code> <code>console</code> it returns the following:</p>
  
  <pre><code>!which python = /Users/XXXX/anaconda/bin/python
  !which pip = /Users/XXXX/anaconda/bin/pip
  </code></pre>