简体   繁体   中英

Install PyGObject on Windows

I am trying to install PyGObject on Windows 10 with Python 3.5. I know that you download the binaries here :

But after downloading the file and running the executable and finding Python's install path, I click on EVERY option and try to import GTK as instructed on their site here . This is the result:

from gi.repository import Gtk

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'gi'

How do I get this all working and running?

Well it says "PyGI 3.14.0 AIO rev22 for python 2.7, 3.1, 3.2, 3.3 and 3.4" So I imagine it hasn't been updated for 3.5 and it is also 2 major versions behind.

I would suggest just using the MSYS2 project to get everything.

您可能缺少 mingw-w64-x86_64-python3-gobject

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM