简体   繁体   English

如何在Windows上安装PyGI(Python Gobject Introspection)?

[英]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.

相关问题 Windows 7的Python GObject自省 - Python GObject Introspection for Windows 7 在Windows上安装PyGI无法找到Python安装 - PyGI install on Windows cannot find Python installation 将gpointer与Python和GObject自省一起使用 - Using gpointer with Python and GObject introspection 如何从 python 调用 vala 构造函数? (使用 GObject 自省) - How do I call vala constructors from python ? (using GObject Introspection) 无法在python中使用带有gobject-introspection的库构建 - unable to use library build with gobject-introspection in python 使用 python 和 GObject 内省获取 GTK+ 主题 colors - Get GTK+ theme colors with python and GObject introspection 在 python 中使用 jedi-vim 使用 gobject 自省自动完成自己的 gobject 派生库 - autocompletion for own gobject derived library in python using jedi-vim using gobject introspection 使用pygi,如何覆盖GObject类中与基类中的虚拟方法同名的虚拟方法? - Using pygi, how can I override a virtual method from a GObject class that has the same name as a virtual method in its base class? 如何使用PyGI使用Wnck获取Windows列表? - How can I get a list of windows with Wnck, using PyGI? 使用python gobject-introspection和gtk3的Cairo和Gdk.Window与Gtk.DrawingArea - Cairo and Gdk.Window with Gtk.DrawingArea using python gobject-introspection and gtk3
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM