Cannot import name '_gi'

前端 未结 4 1597
说谎
说谎 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:10

    Follow the below steps to solve the issue.

    (1) ls -al /usr/bin | grep python

    (2) sudo gedit /usr/bin/add-apt-repository

    Then change the !/usr/bin/python3 to

    !/usr/bin/python3.6
    

提交回复
热议问题