2009-12-08 71 views
1

我有Windows Vista 64位SP2。我正在尝试将wxPython用于使用Python的GUI开发,因为我所有的研究都指出了这一点。我已经下载并安装了win64 wxPython。我每次都得到相同的错误。WxPython,Windows Vista 64位和失败

Python 2.6 (r26:66721, Oct 2 2008, 11:35:03) [MSC v.1500 32 bit (Intel)] on win 
32 
Type "help", "copyright", "credits" or "license" for more information. 

>>> import wx 
Traceback (most recent call last): 
    File "<stdin>", line 1, in <module> 
    File "C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\__init__.py", line 4 
5, in <module> 
    from wx._core import * 
    File "C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 4, i 
n <module> 
    import _core_ 
ImportError: DLL load failed: %1 is not a valid Win32 application. 
我已经安装在我的蟒蛇关的C

,我已经在C安装python26:\程序文件(x86)和安装的wxPython那里,我已经使用32位,64位。我试图到处寻找类似的问题,而且我几乎没有看到任何其他人遇到过这个问题。任何帮助将不胜感激。

回答

6

看起来你试图在32位Python上运行64位wxPython。你需要他们都是为了同一个架构。

+1

我重新安装了64位和32位,我现在就可以开始工作了。 – Kevin 2009-12-08 18:30:07

相关问题