Cannot import name '_gi'

前端 未结 4 1657
说谎
说谎 2021-01-11 11:58

I\'m trying to add a repository to ppa with the add-apt-repository commands but the _gi module from Python is not found.

I did this command

4条回答
  •  死守一世寂寞
    2021-01-11 12:29

    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:

    sudo apt install python3-gi
    

提交回复
热议问题