如何在 Windows 上安装 PyGI(Python Gobject Introspection)? [英] How to install PyGI (Python Gobject Introspection) on Windows?

查看:76
本文介绍了如何在 Windows 上安装 PyGI(Python Gobject Introspection)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安装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跑步:Python进口gtk...作品

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

在一个安装程序中是否有一个 PyGI?跑步:Python进口GI错误:无法导入模块 gi...如何让它在 Windows 上工作?在 Ubuntu 11.04 上运行,无需安装任何东西.

Is there a PyGI all in one installer? run: python import gi Error: Unable to import module gi ...how to make it work on Windows? On Ubuntu 11.04 runs without installing anything.

推荐答案

我认为您在这里遇到了两个问题.首先,我不确定具有自省功能的 PyGObject 版本是否可用于 Windows.更重要的是,只有 GTK 2 库可用于 Windows,但不幸的是,对 GTK 2 内省的支持并不完整.

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. More importantly, only the GTK 2 libraries are available for Windows, but unfortunately support for introspection with GTK 2 is incomplete.

这篇关于如何在 Windows 上安装 PyGI(Python Gobject Introspection)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆