Installation of pygobject
I followed your instructions to download this on a mac. I simply copy and pasted this into a file entitled "hello.py":
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk
window = Gtk.Window(title="Hello World")
window.show()
window.connect("destroy", Gtk.main_quit)
Gtk.main()
I then ran your installation. When attempting to run this file (python3 hello.py), however, I got the error:
File "hello.py", line 1, in <module>
import gi
ModuleNotFoundError: No module named 'gi'
It was only able to find the module when at the top of the file I had #!/usr/bin/python2.7, and ran the command python2.7 hello.py
Why is this?
Edited by Christoph Reiter