[英]How to install PyGI (Python Gobject Introspection) on Windows?
Installing the python interpreter: http://python.org/ftp/python/2.7.2/python-2.7.2.msi and: http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/2.24/pygtk-all-in-one-2.24.0.win32-py2.7.msi run: python import gtk ...works 安装python解释器: http : //python.org/ftp/python/2.7.2/python-2.7.2.msi和: http : //ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/ 2.24 / pygtk-all-in-one-2.24.0.win32-py2.7.msi run:python import gtk ... works
Is there a PyGI all in one installer? 一个安装程序中是否有PyGI? run: python import gi Error: Unable to import module gi ...how to make it work on Windows?
运行:python import gi错误:无法导入模块gi ...如何使其在Windows上运行? On Ubuntu 11.04 runs without installing anything.
在Ubuntu 11.04运行没有安装任何东西。
2016 : There is now an all in one installer : 2016年:现在有一个安装程序:
https://sourceforge.net/projects/pygobjectwin32/files/?source=navbar https://sourceforge.net/projects/pygobjectwin32/files/?source=navbar
I have installed Python 3.4.3, then pygi-aio-3.18.2_rev10. 我已经安装了Python 3.4.3,然后是pygi-aio-3.18.2_rev10。 Works fine in Windows 7.
在Windows 7中正常工作。
I think you run into two problems here. 我想你在这里遇到两个问题。 First of all, I'm not sure that the PyGObject versions featuring introspection are available for Windows.
首先,我不确定具有内省功能的PyGObject版本是否适用于Windows。 More importantly, only the GTK 2 libraries are available for Windows, but unfortunately support for introspection with GTK 2 is incomplete.
更重要的是,只有GTK 2库可用于Windows,但不幸的是,支持GTK 2的内省是不完整的。
我已经做了一些工作来将gobject内省系统移植到windows: https : //github.com/tomnotcat/glib-win32
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.