cannot import gi module python 3.6 on mac
问题 I am integrating gstreamer and pocketsphinx on mac using python 3.6; however, the first line of code, from gi import pygtkcompat , raises an error. The command: python3 demoapp_chinese.py returns Traceback (most recent call last): File "demoapp_chinese.py", line 1, in from gi import pygtkcompat ModuleNotFoundError: No module named 'gi' Here's how I install pygobject: brew install pygobject3 And when I try to get more info. I execute brew info pygobject3 which returns pygobject3: stable 3.30.4