title: How to install pygtk within virtualenv?
body: <p>I installed ipython in a virtual env (1.13 with 2.7.2) and tried <code>ipython -gui=gtk</code> but still got the basic terminal interface with no %paste support for example.</p>
  
  <p>Now I tried installing pygtk but no success there either.</p>
  
  <p>I'm running Crunchbang linux with OpenBox WM.</p>
  
  <pre><code>    [TerminalIPythonApp] GUI event loop or pylab initialization failed
  ---------------------------------------------------------------------------
  ImportError                               Traceback (most recent call last)
  ...python2.7/local/lib/python2.7/site-packages/IPython/lib/inputhook.pyc in enable_gui(gui, app)
      526         e = "Invalid GUI request %r, valid ones are:%s" % (gui, guis.keys())
      527         raise ValueError(e)
  --&gt; 528     return gui_hook(app)
      529 
  
  ...python2.7/local/lib/python2.7/site-packages/IPython/lib/inputhook.pyc in enable_gtk(self, app)
      286         IPython.
      287         """
  --&gt; 288         import gtk
      289         try:
      290             gtk.set_interactive(True)
  
  ImportError: No module named gtk
  </code></pre>
  
  <p>I've tried to pip install pygtk within the virtualenv I've activated but no luck. </p>
  
  <p>Full log:</p>
  
  <pre><code>$ pip install pygtk
  Downloading/unpacking pygtk
    Downloading pygtk-2.24.0.tar.bz2 (2.4MB): 2.4MB downloaded
    Running setup.py egg_info for package pygtk
      ********************************************************************
      * Building PyGTK using distutils is only supported on windows. *
      * To build PyGTK in a supported way, read the INSTALL file.    *
      ********************************************************************
      Complete output from command python setup.py egg_info:
      ********************************************************************
  
  * Building PyGTK using distutils is only supported on windows. *
  
  * To build PyGTK in a supported way, read the INSTALL file.    *
  
  ********************************************************************
  
  ----------------------------------------
  Command python setup.py egg_info failed with error code 1 in ...python2.7/build/pygtk
  </code></pre>