How to install PyGObject for anaconda python3?

按照 https://anaconda.org/conda-forge/pygobject 安装

2019-01-15 23-29-28 的屏幕截图.png

import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk
I get following error message:
ValueError: Namespace Gtk not available
后来在stackoverflow上有个帖子说:

conda install -c pkgw/label/superseded gtk3

安装、成功、谢谢!

你可能感兴趣的:(How to install PyGObject for anaconda python3?)