Windows 8.1; Python 2.7:`import gtk`产生ImportError:DLL加载失败?

时间:2015-04-22 18:30:14

标签: python-2.7 gtk pygtk

更完整的是,这是追溯:

A:\hamster-src\hamster\win>python hamster-win.py
Running from source folder, modifying PYTHONPATH
Traceback (most recent call last):
  File "hamster-win.py", line 35, in <module>
    import gtk
  File "A:\Anaconda\lib\site-packages\gtk-2.0\gtk\__init__.py", line 30, in <mod
ule>
    import gobject as _gobject
  File "A:\Anaconda\lib\site-packages\gtk-2.0\gobject\__init__.py", line 26, in
<module>
    from glib import spawn_async, idle_add, timeout_add, timeout_add_seconds, \
  File "A:\Anaconda\lib\site-packages\gtk-2.0\glib\__init__.py", line 22, in <mo
dule>
    from glib._glib import *
ImportError: DLL load failed: %1 is not a valid Win32 application.

我已经为Windows运行时环境安装了GTK +,如下所示:http://sourceforge.net/projects/gtk-win/

我使用一体化安装程序安装了PyGTK。

似乎仍无法找到合适的DLL?我该如何解决这个问题?

0 个答案:

没有答案