Python cannot install PyGObject

前端 未结 4 1149
误落风尘
误落风尘 2020-12-18 00:38

I try install pygobject by pip

pip install --user PyGObject

but I doesn\'t work:

Collecting PyGObject
  Using cached pygob         


        
4条回答
  •  鱼传尺愫
    2020-12-18 01:08

    Since February 2017, you can install pygobject directly through pip: pip install pygobject. It requires some packages to be installed though.

    Before that, it took a while, but it was possible to install pygobject with pip, since this commit.

    pygobject wasn't on pypi though, so you had to specify the git or tarball URL:

    • git+https://git.gnome.org/browse/pygobject
    • https://download.gnome.org/sources/pygobject/3.22/pygobject-3.22.0.tar.xz

    The latter only works with pygobject 3.22+, which should have happenned around mid-september 2016. (3.21.1 should be the first pip-installable development release)

提交回复
热议问题