2009-12-08 112 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

相關問題