简体   繁体   English

Windows 7上的wxPython for Python 2.4.3

[英]wxPython for Python 2.4.3 on Windows 7

My company server uses Python 2.4.3. 我的公司服务器使用Python 2.4.3。 I need to use wxPython, but current version of wxPython requires either Python 2.6 or 2.7. 我需要使用wxPython,但是当前版本的wxPython需要Python 2.6或2.7。

How do I get wxPython to work with Python 2.4.3 on Windows 7? 如何在Windows 7上使wxPython与Python 2.4.3一起使用?

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

PS I tried installing "wxPython2.8-win32-unicode-py26" and import wx, but got the following error: PS我尝试安装“ 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.

Ok so I figured it out. 好的,所以我知道了。

Since "wxPython2.8-win32-unicode-py26" (wxPython 2.8.12.1) requires Python 2.6, it would not work if I have Python 2.4. 由于“ wxPython2.8-win32-unicode-py26”(wxPython 2.8.12.1)需要Python 2.6,因此如果我有Python 2.4,它将无法工作。

So I found wxPython 2.8.10.1 which supports Python 2.4, installed it and it works! 因此,我找到了支持Python 2.4的wxPython 2.8.10.1,将其安装并运行!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM