简体   繁体   English

如何在Python 2.5上安装缺少的wx模块?

[英]How to install missing wx module on Python 2.5?

I have developped a tool under python 2.5 and can't upgrade to a newer python version as I need to use an API developped under python 2.5 as well. 我已经在python 2.5下开发了一个工具,不能升级到较新的python版本,因为我也需要使用在python 2.5下开发的API。

I recently tried my tool under another machine and it seems it hasn't wx module installed as you can see below: 我最近在另一台机器上尝试了我的工具,似乎没有安装wx模块,如下所示:

>>> import wx
Traceback (most recent call last):
  File "<interactive input>", line 1, in <module>
ImportError: No module named wx

So I searched for the wxpython source . 所以我搜索了wxpython源 However once I tried to install the source with: 但是,一旦我尝试使用以下命令安装源代码:

D:\tmp\wxPython-4.0.0b2>c:\Python25\python.exe setup.py install

I got following error: 我收到以下错误:

Traceback (most recent call last): File "setup.py", line 15, in from setuptools import setup, find_packages ImportError: No module named setuptools 追溯(最近一次通话):文件“ setup.py”,行15,来自setuptools导入安装程序,find_packages ImportError:没有名为setuptools的模块

I can't either install whl files as I don't have pip . 我无法安装whl文件,因为我没有pip

So, how can I install wxpython for python 2.5 under Windows ? 那么, 如何在Windows下为python 2.5安装wxpython

Is there any executable there in the web that I couldn't find? 网络上是否有我找不到的可执行文件? May there be a workaround by copying the wx module from a python directory from another computer? 通过从另一台计算机的python目录复制wx模块,是否可以解决?

As I had to install wxpython 2.7.2.0 I finally got it from wxPython2.7-win32-ansi-2.7.2.0-py25.exe . 由于必须安装wxpython 2.7.2.0所以我终于从wxPython2.7-win32-ansi-2.7.2.0-py25.exe中获得了它。

As stated in Patrick's comment all wxpython executables for any version are under https://sourceforge.net/projects/wxpython/files/wxPython/ 如Patrick的评论所述,任何版本的所有wxpython可执行文件都位于https://sourceforge.net/projects/wxpython/files/wxPython/

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

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