I\'m trying to add a repository to ppa with the add-apt-repository commands but the _gi module from Python is not found.
add-apt-repository
_gi
I did this command
Ubuntu does not like to switch its default interpreter away from python 3.7.
So switch it back to 3.6 by using
sudo update-alternatives --config python3
After that try to install the gi package:
gi
sudo apt install python3-gi