pythonwindowspython-3.xpippygobject

Python cannot install PyGObject


I try install pygobject by pip

pip install --user PyGObject

but I doesn't work:

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 "<string>", line 20, in <module>
      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

My python version v3.5.0:374f501f4567, Now I work on windows 7


Solution

  • Upstream PyGObject just does not support this. See the PyGObject win32 project or the MSYS2 project to get it easily.