If I run python it defaults to python 2.7 and import gi
works OK. If I run python3 import gi
returns the error. I assumed (wrongly) that apt install python3-gi would force installation into python 3.8 (my latest version), but it seems to be picking up the package in 2.7 and stopping there. How can I force an installation into python 3.8?
No LSB modules are available.
Distributor ID: LinuxMint
Description: Linux Mint 18.3 Sylvia
Release: 18.3
Codename: sylvia
EDIT: Found answer here