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
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)
C:\msys64\mingw32.exe
- a terminal window should pop uppacman -Suy
pacman -S mingw-w64-i686-gtk3 mingw-w64-i686-python3-gobject
gtk3-demo
hello.py
script you created to C:\msys64\home\<username>
python3 hello.py
- a window should appear.sudo apt install python3-gi python3-gi-cairo gir1.2-gtk-3.0
hello.py
script can be found (e.g. cd Desktop
)python3 hello.py
sudo apt install libgirepository1.0-dev gcc libcairo2-dev pkg-config python3-dev gir1.2-gtk-3.0
pip3 install pycairo
to build and install Pycairopip3 install PyGObject
to build and install PyGObjecthello.py
script can be foundpython3 hello.py
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With