windows下安装pygtk报g_assertion_message无法定位libglib-2.0-0.dll错误解决

昨天.安装pygtk装完以后使用时提示如下错误:

 

>>> import gtk

Traceback (most recent call last):
File "<pyshell#5>", line 1, in <module>
    import gtk
File "D:\Python25\Lib\site-packages\gtk-2.0\gtk\__init__.py", line 38, in <module>
    import gobject as _gobject
File "D:\Python25\Lib\site-packages\gtk-2.0\gobject\__init__.py", line 30, in <module>
    from gobject.constants import *
File "D:\Python25\Lib\site-packages\gtk-2.0\gobject\constants.py", line 22, in <module>
    from _gobject import type_from_name
ImportError: DLL load failed: 找不到指定的程序。

怪了事了.按照提示PyCairo和 PyGObject都装了啊..怎么还提示错误...因为昨天有事急.就没搞..

今天有空来解决下.先上百度,没几个资料.找一个python GTK+软件运行提示   

g_assertion_message无法定位libglib-2.0-0.dll

看来跟libglib有关,

上GOOGLE一阵猛搜...原来pygtk安装除了上面两个模块还要再装一个gtk2-runtime-2.16.0-2009-03-22-ash.exe 模块.装完在安装目录下找到libglib-2.0-0.dll,复制到system32目录下.

搞定

你可能感兴趣的:(windows,python,libglib)