import gi

如果你使用了 conda 中的 python,那么建议你使用这里的安装方法:

conda install -c conda-forge pygobject


附加命令

# ubuntu 使用国内源
cp /etc/apt/sources.list{,.bak}
sed -i 's#http://archive.ubuntu.com/#http://mirrors.aliyun.com/#g' /etc/apt/sources.list


# conda 使用国内源
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --show-sources








深度学习推荐
深度学习推荐

墨之科技,版权所有 © Copyright 2017-2027

湘ICP备14012786号     邮箱:ai@inksci.com