title: How do I install python3-gi within virtualenv?
body: <p>I'm following the <a href="http://python-gtk-3-tutorial.readthedocs.org/en/latest/install.html" rel="noreferrer">Python GTK+ 3 Tutorial</a> and I'm trying to get a working install running in virtualenv. I have <a href="http://packages.ubuntu.com/trusty/python3-gi" rel="noreferrer">python3-gi</a> installed through the Ubuntu package manager already. Things look like this:</p>
  
  <pre><code>:~$ mkvirtualenv py3 --python=/usr/bin/python3
  Running virtualenv with interpreter /usr/bin/python3
  Using base prefix '/usr'
  New python executable in py3/bin/python3
  Also creating executable in py3/bin/python
  Installing setuptools, pip...python
  done.
  (py3):~$ python
  Python 3.4.0 (default, Apr 11 2014, 13:05:11) 
  [GCC 4.8.2] on linux
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; import gi
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  ImportError: No module named 'gi'
  &gt;&gt;&gt; 
  (py3):~$ deactivate
  :~$ /usr/bin/python3
  Python 3.4.0 (default, Apr 11 2014, 13:05:11) 
  [GCC 4.8.2] on linux
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; import gi
  &gt;&gt;&gt; 
  </code></pre>
  
  <p>As you can see, python3-gi is obviously not available within virtualenv but I am not sure how to install it since python3-gi is installed through my package manager and not with pip.</p>