安装 Glib(不是 GLib)最直接的方法是什么? (Windows OS/ 用于python编码)

What is the most straightforward way to install Glib (not GLib) ? (Windows OS/ for python coding)

我正在阅读这本书 "Python An introduction to programming" 并且作者使用了 Glib 库。他提到了一个 "static Glib" 和一个 "dynamic Glib",这似乎是两个不同的库。

上网找了个Gnome网站(https://developer.gnome.org/glib/) but this seems to be only manuals. The only place I found something related to its installation is on the GTK+ website (https://www.gtk.org/download/windows.php)好像是安装包里面的

我想在 python 中使用 Glib,我正在使用 Windows 10.

安装GTK+是安装Glib最直接的方法吗?该 Glib 是否包含它的 "dynamic" 和 "static" 版本?

你走错了路。 GTK+ 中的 GLib 拼写为 GLib(大写 G,大写 L)。对您的书进行快速网络搜索会显示 web page of the author 谈论:

This book introduces a multimedia code module Glib that can assist the programmer with graphics, animation, sound, interaction, and video. The basic library, static Glib (tkinter), needs nothing but a standard 3.4 or better installation of Python. It uses tkinter as a basis, which is distributed with the language.

所以名字起的不好,不过他说his Glib是在Tkinter之上的一层,Tkinter是一个不同于GTK的工具包。该页面顶部的 GLIB (sic) link 会将您带到可以下载该模块的页面。单击右侧的下载箭头将下载该简单的 glib.py 文件。

本书开头可能有说明,请仔细阅读。 如果不是,那么我不确定我是否会相信一个人在他无法做到 a wikipedia search 时会教我一些东西来检查在选择模块名称时是否使用了名称。

如果您真正想要的是使用 GTK+,这里是 GTK+ 3 python tutorial(它会教您 GTK+,但不会教您 python)。