Python ne peut pas installer PyGObject

J’essaie d’installer pygobject par pip

pip install --user PyGObject 

mais je ne travaille pas:

 Collecting PyGObject Using cached pygobject-2.28.3.tar.bz2 Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 20, in  File "C:\Users\A\AppData\Local\Temp\pip-build-phby_jwb\PyGObject\ setup.py", line 272 raise SystemExit, 'ERROR: Nothing to do, gio could not be found and is essential.' ^ SyntaxError: invalid syntax ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in C:\Users\A\AppData\Local\Temp\pip-build-phby_jwb\PyGObject 

Ma version python v3.5.0: 374f501f4567, maintenant je travaille sur Windows 7

En amont, PyGObject ne supporte tout simplement pas cela. Voir le projet win32 PyGObject ou le projet MSYS2 pour l’obtenir facilement.

Depuis février 2017, vous pouvez installer pygobject directement via pip: pip install pygobject . Cependant, certains paquets doivent être installés.

Avant cela, il a fallu du temps, mais il était possible d’installer pygobject avec pip, depuis cette validation .

pygobject n’était cependant pas sur pypi, il fallait donc spécifier l’URL git ou tarball:

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

Ce dernier ne fonctionne qu’avec pygobject 3.22+, qui aurait dû se produire vers la mi-septembre 2016 . (3.21.1 devrait être la première version de développement installable par pip)