0

My company server uses Python 2.4.3. I need to use wxPython, but current version of wxPython requires either Python 2.6 or 2.7.

How do I get wxPython to work with Python 2.4.3 on Windows 7?

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

P.S. I tried installing "wxPython2.8-win32-unicode-py26" and import wx, but got the following error:

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.
4

1 回答 1

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,安装它并且它可以工作!

于 2013-11-09T22:58:39.510 回答