title: Error when "import matplotlib.pyplot as plt"
body: <p>I am very new to python. So, my problem might be too simple to be solved. But I cannot. Please help me!
  I did not have any problem to use "plt", but it suddenly shows error message and does not work, when I import it. Please see the below.</p>
  
  <pre><code>    &gt;&gt;&gt; import matplotlib
      &gt;&gt;&gt; import matplotlib.pyplot as plt
      Traceback (most recent call last):
        File "&lt;stdin&gt;", line 1, in &lt;module&gt;
        File "/usr/lib64/python2.6/site-packages/matplotlib/pyplot.py", line 6, in &lt;module&gt;
          from matplotlib.figure import Figure, figaspect
       File "/usr/lib64/python2.6/site-packages/matplotlib/figure.py", line 18, in &lt;module&gt;
         from axes import Axes, SubplotBase, subplot_class_factory
       File "/usr/lib64/python2.6/site-packages/matplotlib/axes.py", line 2, in &lt;module&gt;
         import math, sys, warnings, datetime, new
       File "new.py", line 12, in &lt;module&gt;
         import matplotlib.pyplot as plt
       AttributeError: 'module' object has no attribute 'pyplot'
  </code></pre>
  
  <p>This package is suddenly corrupted? So, I tried to install as below.I use ubuntu.</p>
  
  <pre><code>    In [1]: sudo apt-get install python-matplotlib
        File "&lt;ipython-input-1-2400ac877ebd&gt;", line 1
          sudo apt-get install python-matplotlib
         ^
      SyntaxError: invalid syntax
  </code></pre>
  
  <p>If I need to reinstall, please give me very detailed instruction how to do it.
  Thank you very much in advance.</p>