title: How to install PyGObject on windows in a anaconda virtual env
body: <p>I want to use Gtk with python under windows.  I already have Anaconda installed on windows.  In order not to mess up everything and to have some easiness uninstalling/reinstalling, I would like to have a virtual env created with <code>conda</code>, working with that Gtk installation.  But I don't seems to be able to make it work.</p>
  
  <p>Here is my process.  I first create a raw Ananconda virtual env with</p>
  
  <pre><code>conda create -n gtk-exporter python
  </code></pre>
  
  <p>The virtual environment is located at <code>C:\Anaconda3\envs\gtk-exporter</code>.</p>
  
  <p>I then download the latest windows installer for PyGObject at <a href="http://sourceforge.net/projects/pygobjectwin32/files/?source=navbar" rel="nofollow">http://sourceforge.net/projects/pygobjectwin32/files/?source=navbar</a></p>
  
  <p>I extract and execute the installer and tell it to use a portable python install at <code>C:\Anaconda3\envs\gtk-exporter</code>.  I only select Base, GTK and Glade for installation.  The installation finished in a second and says it's successful.</p>
  
  <p>Then within windows' shell, I activate the new environment with <code>activate gtk-exporter</code>.  However when I try to import gtk, it fails, not finding <code>gi.repository</code>.</p>
  
  <pre><code>&gt;&gt;&gt; from gi.repository import Gtk
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  ImportError: No module named 'gi'
  </code></pre>
  
  <p>What's wrong here ?  <code>C:\Anaconda3\envs\gtk-exporter\Lib\site-package</code> contains a folder <code>gnome</code> with a lot of stuff including <code>*.dll</code>s, <code>*.exe</code>'s and unix-looking folders like <code>etc</code>, <code>lib</code> or <code>share</code>, but I don't see a <strong>init</strong>.py or something pythonic.  Am I missing a step.</p>
  
  <p>Thank you for your help !</p>