到目前为止,PyQt4 似乎在 Windows 8 64 位上运行的 Python 2.7.5 上运行良好。通过以下方式使用交互式外壳cmd
:
Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt4.QtGui import *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: DLL load failed: %1 is not a valid Win32 application.
问:是什么原因突然出现这个问题?