title: Ubuntu : how to install matplotlib with python3.2 (freetype issue)
body: <p>In this thread:</p>
  
  <p><a href="https://stackoverflow.com/questions/8605847/how-to-install-matplotlib-with-python3-2">How to install matplotlib with Python3.2</a></p>
  
  <p>the following is adviced:</p>
  
  <blockquote>
    <p>git clone <a href="https://github.com/matplotlib/matplotlib" rel="nofollow noreferrer">https://github.com/matplotlib/matplotlib</a></p>
    
    <p>cd matplotlib</p>
    
    <p>python3 setup.py build</p>
    
    <p>sudo python3 setup.py install</p>
  </blockquote>
  
  <p>but this does not work for me, as I get:</p>
  
  <blockquote>
    <ul>
    <li>The following required packages can not be built:</li>
    <li>freetype</li>
    </ul>
  </blockquote>
  
  <p>I do not know what freetype is, but it does not seem to be in aptitude or pip.</p>
  
  <p>I found the sources here:
  <a href="https://github.com/rougier/freetype-py" rel="nofollow noreferrer">https://github.com/rougier/freetype-py</a></p>
  
  <p>but installing failed:</p>
  
  <blockquote>
  <pre><code>byte-compiling /usr/local/lib/python3.2/dist-packages/freetype/__init__.py to
  </code></pre>
    
    <p><strong>init</strong>.cpython-32.pyc
          File "/usr/local/lib/python3.2/dist-packages/freetype/<strong>init</strong>.py", line 39
            raise RuntimeError, 'Freetype library not found'
                              ^
        SyntaxError: invalid syntax</p>
  </blockquote>
  
  <p>but apparently that was to be expected, as freetype does not seem to be ok with python3.2:</p>
  
  <p><a href="https://code.google.com/p/freetype-py/issues/detail?id=11" rel="nofollow noreferrer">https://code.google.com/p/freetype-py/issues/detail?id=11</a></p>
  
  <p>As it seems to me other people manage to use matplotlib with python3, anything I am missing ?</p>
  
  <p>ps : this did not work :
  <a href="https://stackoverflow.com/questions/20572366/sudo-pip-install-matplotlib-fails-to-find-freetype-headers-os-x-mavericks">`Sudo pip install matplotlib` fails to find freetype headers. [OS X Mavericks / 10.9]</a></p>