title: import matplotlib.pyplot gives ImportError: dlopen(…) Library not loaded libpng15.15.dylib
body: <p><a href="https://stackoverflow.com/questions/27281943/import-matplotlib-pyplot-gives-importerror-dlopen-library-not-loaded-libpn">I am aware that this exact same question has been asked before.</a> I did follow the instructions given in the answer there, and it didn't solve my problem (and I don't have enough reputation to just comment on the Q or A in that thread). Anyway, here's what's going on:</p>
  
  <p>I try to do:</p>
  
  <pre><code>import matplotlib.pyplot
  </code></pre>
  
  <p>And in return I get:</p>
  
  <pre><code>Traceback (most recent call last):
    File "/Users/russellrichie/anaconda/lib/python2.7/site-packages/IPython/core/interactiveshell.py", line 3032, in run_code
      exec(code_obj, self.user_global_ns, self.user_ns)
    File "&lt;ipython-input-3-eff513f636fd&gt;", line 1, in &lt;module&gt;
      import matplotlib.pyplot as plt
    File "/Users/russellrichie/anaconda/lib/python2.7/site-packages/matplotlib/pyplot.py", line 27, in &lt;module&gt;
      import matplotlib.colorbar
    File "/Users/russellrichie/anaconda/lib/python2.7/site-packages/matplotlib/colorbar.py", line 34, in &lt;module&gt;
      import matplotlib.collections as collections
    File "/Users/russellrichie/anaconda/lib/python2.7/site-packages/matplotlib/collections.py", line 27, in &lt;module&gt;
      import matplotlib.backend_bases as backend_bases
    File "/Users/russellrichie/anaconda/lib/python2.7/site-packages/matplotlib/backend_bases.py", line 56, in &lt;module&gt;
      import matplotlib.textpath as textpath
    File "/Users/russellrichie/anaconda/lib/python2.7/site-packages/matplotlib/textpath.py", line 22, in &lt;module&gt;
      from matplotlib.mathtext import MathTextParser
    File "/Users/russellrichie/anaconda/lib/python2.7/site-packages/matplotlib/mathtext.py", line 63, in &lt;module&gt;
      import matplotlib._png as _png
  ImportError: dlopen(/Users/russellrichie/anaconda/lib/python2.7/site-packages/matplotlib/_png.so, 2): Library not loaded: libpng15.15.dylib
    Referenced from: /Users/russellrichie/anaconda/lib/python2.7/site-packages/matplotlib/_png.so
    Reason: image not found
  </code></pre>
  
  <p>My Python version:</p>
  
  <pre><code>2.7.7 |Anaconda 2.0.1 (x86_64)| (default, Jun  2 2014, 12:48:16) [GCC 4.0.1 (Apple Inc. build 5493)]
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>cel's suggestion worked! I just tried "conda remove matplotlib", "pip install matplotlib", and then "conda install matplotlib", and presto! Man, you have no idea how long this problem has vexed me. Bless you all.</p>