【发布时间】:2010-11-20 14:59:55
【问题描述】:
我有一个应用程序,它依赖于我为在 Linux 上工作而构建的 PyGTK、PyGobject 和 PyCairo。我想将它移植到 Windows,但是当我执行 import gobject 时,我得到了这个:
Traceback (most recent call last):
import gobject
File "C:\Python26\lib\site-packages\gtk-2.0\gobject\__init__.py", line 30, in <module>
from gobject.constants import *
File "C:\Python26\lib\site-packages\gtk-2.0\gobject\constants.py", line 22, in <module>
from _gobject import type_from_name
ImportError: DLL load failed: The specified procedure could not be found.
这似乎是由于从使用 MinGW 构建切换到 Microsoft Visual Studio 造成的,如 Python Bug 3308 (closed: wontfix) 所述。
有没有什么方法可以在 Windows 上与 Python 2.6 一起安装 PyGTK/PyGObject,而无需从源代码重新编译一个或另一个?
【问题讨论】:
标签: python pygtk mingw pygobject