2013-11-09 25 views
0

我公司的服務器使用Python 2.4.3。我需要使用wxPython,但當前版本的wxPython需要Python 2.6或2.7。Windows 7上的wxPython for Python 2.4.3

如何讓wxPython在Windows 7上使用Python 2.4.3?

http://www.wxpython.org/download.php

P.S.我嘗試安裝 「wxPython2.8-Win32的Unicode的py26」 和進口WX,但得到了以下錯誤:

Traceback (most recent call last): 

File "<pyshell#0>", line 1, in -toplevel- 
import wx 
File "C:\Python24\Lib\site-packages\wx-2.8-msw-unicode\wx\__init__.py", line 45, in -toplevel- 
from wx._core import * 
File "C:\Python24\Lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 4, in -toplevel- 
import _core_ 
ImportError: DLL load failed: The specified module could not be found. 

回答

1

好了,所以我想它了。由於「wxPython2.8-win32-unicode-py26」(wxPython 2.8.12.1)需要Python 2.6,如果我有Python 2.4,它將不起作用。

因此,我發現支持Python 2.4的wxPython 2.8.10.1,安裝它,它的工作原理!