title: ModuleNotFoundError: No module named 'gi'
body: <p>I am trying to run the following program:</p>
  <pre><code>import gi
  gi.require_version('Gst', '1.0')
  from gi.repository import GObject, Gst
  </code></pre>
  <p>Bu I am getting:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;application.py&quot;, line 2, in &lt;module&gt;
      import gi
  ModuleNotFoundError: No module named 'gi'
  </code></pre>
  <p>I am on a Mac Sierra (10.12.1 (16B2555)) using Python3.</p>
  <p>I've installed pygoject and gtk+3 (as can be seen here):</p>
  <pre><code>(cv) ✔ ~/Documents/test 
  00:53 $ brew install pygobject3 --with-python3 gtk+3
  Warning: pygobject3 3.24.1_1 is already installed
  Warning: gtk+3 3.22.18 is already installed
  </code></pre>
  <p>My Python is from my virtualenv:</p>
  <pre><code>(cv) ✘-1 ~/Documents/test 
  00:53 $ which python
  /Users/myuser/.virtualenvs/cv/bin/python
  
  (cv) ✔ ~/Documents/test 
  00:54 $ python --version
  Python 3.6.1
  </code></pre>
  <p>If I try to uninstall gi to reinstall it (as I saw in some previous answers from Stack) I get:</p>
  <pre><code>(cv) ✘-1 ~/Documents/test 
  00:55 $ pip uninstall gi
  Cannot uninstall requirement gi, not installed
  </code></pre>
  <p>Any idea of what could solve my issue?</p>