title: Installing Pylab/Matplotlib
body: <p>I'm trying to write a program that plots a graph, which made me look into
  Matplotlib. </p>
  
  <p>I found a tutorial that started out with this little program, that worked fine:</p>
  
  <pre><code>from pylab import *
  
  def main():
      X = np.linspace(-np.pi, np.pi, 256, endpoint=True)
      C,S = np.cos(X), np.sin(X)
      plot(X,C)
      plot(X,S)
      show()
  
  if __name__ == '__main__':
      main()
  </code></pre>
  
  <p>Then I tried to run it on another computer, where it did not work at all. I tried to download Pylab and Matplotlib. When I had installed Matplotlib it demanded something called dateutil, when I got dateutil it demanded something called six. I downloaded six, but it didn't work properly.</p>
  
  <p>It doesn't feel like I'm on the right track. What should I do to get a proper installation?</p>
  
  <p>EDIT:</p>
  
  <p>I'm using Python 2.7 on Windows 7.</p>
  
  <p>The error I get is </p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\Users\Python\mscript\listdb2.py", line 19, in &lt;module&gt;
      from pylab import *
    File "C:\Python27\lib\site-packages\pylab.py", line 1, in &lt;module&gt;
      from matplotlib.pylab import *
    File "C:\Python27\lib\site-packages\matplotlib\pylab.py", line 226, in &lt;module&gt;
      import matplotlib.finance
    File "C:\Python27\lib\site-packages\matplotlib\finance.py", line 21, in &lt;module&gt;
      from matplotlib.dates import date2num
    File "C:\Python27\lib\site-packages\matplotlib\dates.py", line 119, in &lt;module&gt;
      from dateutil.rrule import (rrule, MO, TU, WE, TH, FR, SA, SU, YEARLY,
    File "C:\Python27\lib\site-packages\dateutil\rrule.py", line 18, in &lt;module&gt;
      from six import advance_iterator, integer_types
  ImportError: No module named six
  </code></pre>
  
  <p>The file six.py is located in C:\python27\Lib\site-packages\six\six.py</p>
  
  <p>The six directory also contains a file called test_six.py. If I try to run this program I also get an error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "test_six.py", line 5, in &lt;module&gt;
      import.py
  ImportError: No module named py
  </code></pre>