ImportError: No module named gi.repository

后端 未结 6 1216
情歌与酒
情歌与酒 2021-01-04 10:40

I\'m trying to launch python script on Ubuntu 10.04:

from gi.repository import Nautilus, GObject

It doesn\'t work:

Traceback (most recent         


        
6条回答
  •  没有蜡笔的小新
    2021-01-04 11:19

    Anaconda usually has python package binaries that will work with your platform (Mac or older Ubuntu). According to @Abhijit you need pygobject. It works a lot like pip:

    conda install -c auto pygobject
    

提交回复
热议问题