title: Installing matplotlib on Ubuntu: ImportError
body: <p>My platform:</p>
  
  <p>Ubuntu 13.04, Python 2.7.4.</p>
  
  <p>Installing matplotlib failed, ImportError: No module named pyplot.</p>
  
  <p>I have tried many ways such as</p>
  
  <pre><code>$ sudo apt-get install python-matplotlib
  </code></pre>
  
  <p>and easy install, install from source..., I'm folllowing <a href="http://matplotlib.org/faq/installing_faq.html" rel="nofollow">http://matplotlib.org/faq/installing_faq.html</a></p>
  
  <p>But none of them works, This ImportError always happen, Anyone can help? </p>
  
  <p><strong>EDIT</strong> The trace back:</p>
  
  <pre><code>---------------------------------------------------------------------------
  ImportError                               Traceback (most recent call last)
  &lt;ipython-input-4-82be63b7783c&gt; in &lt;module&gt;()
  ----&gt; 1 import matplotlib
  
  /home/wuhuijia/matplotlib.py in &lt;module&gt;()
        1 import numpy as np
  ----&gt; 2 import matplotlib.pyplot as plt
        3 import scipy.optimize as so
        4 
        5 def find_confidence_interval(x, pdf, confidence_level):
  
  ImportError: No module named pyplot
  </code></pre>