title: How to install pygments on Ubuntu?
body: <p>I'm following Django-rest-framework.org tutorial and this is the models.py's code as below.</p>
  
  <pre><code>from django.db import models
  from pygments.lexers import get_all_lexers
  from pygments.styles import get_all_styles
  
  LEXERS = [item for item in get_all_lexers() if item[1]]
  LANGUAGE_CHOICES = sorted([(item[1][0], item[0]) for item in LEXERS])
  STYLE_CHOICES = sorted((item, item) for item in get_all_styles())
  </code></pre>
  
  <p>and when i run follow command:</p>
  
  <pre><code>python manage.py syncdb
  </code></pre>
  
  <p>it gives me this error</p>
  
  <pre><code>ImportError: No module named pygments.lexers
  </code></pre>
  
  <p>I think that i have to install pygments first to work this code.
  So tell me how to install pygments in my Ubuntu 12.04. I have Python 2.7 version installed.</p>