title: ModuleNotFoundError: No module named 'gi' , how we can fixed it
body: <pre><code>from threading import Thread
  from time import sleep
  import gi
  
  gi.require_version(&quot;Gst&quot;, &quot;1.0&quot;)
  
  from gi.repository import Gst, GLib
  
  
  Gst.init()
  
  main_loop = GLib.MainLoop()
  thread = Thread(target=main_loop.run)
  thread.start()
  
  pipeline = Gst.parse_launch(&quot;ksvideosrc ! decodebin ! videoconvert ! autovideosink&quot;)
  pipeline.set_state(Gst.State.PLAYING)
  
  try:
      while True:
          sleep(0.1)
  except KeyboardInterrupt:
      pass
  
  pipeline.set_state(Gst.State.NULL)
  main_loop.quit()
  main_loop_thread.join()
  </code></pre>
  <p><strong>My output error</strong></p>
  <pre><code>ModuleNotFoundError                       Traceback (most recent call last) &lt;ipython-input-1-ab92d040e545&gt; in &lt;module&gt;
        1 from threading import Thread
        2 from time import sleep
  ----&gt; 3 import gi
        4 
        5 gi.require_version(&quot;Gst&quot;, &quot;1.0&quot;) ModuleNotFoundError: No module named 'gi'
  </code></pre>
  <p><strong>please tell me how I can fixed it.</strong></p>