python - WxPython、Windows Vista 64 位和失败

标签 python windows-vista 64-bit wxpython

我有 Windows Vista 64 位 SP2。我正在尝试使用 wxPython 通过 Python 进行 GUI 开发,因为我所有的研究都指出这是可行的方法。我已经下载并安装了 win64 wxPython。我每次都会遇到同样的错误。

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.

我已经在我的 python 上安装了 c,我已经在 c:\program files (x86) 中安装了 python26,并在那里安装了 wxPython,我使用了 32 位、64 位。我曾尝试到处寻找类似的问题,但我几乎没有看到其他人遇到过这个问题。任何帮助将不胜感激。

最佳答案

看起来您正在尝试在 32 位 Python 上运行 64 位 wxPython。您需要它们都用于相同的架构。

关于python - WxPython、Windows Vista 64 位和失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1868749/

相关文章:

mysql - Delphi IDE 和 MySQL 32 位和 64 位版本

python 线程内存使用 64 位与 32 位

windows - 64 位大型 malloc

python - 无法使用 yapf(谷歌的 python 格式化程序)设置/使用旋钮

python - PIL 从图像中删除背景图像

c++ - 在安装了 VS08 的旧 XP 中使用最新的 dll 函数

windows-vista - 在桌面上的图标下绘图

php - XDebug 未加载到 PHP(Vista、Apache 模块)中

python - 使用 MyPy 验证 `Dict` 与 `TypedDict`

Python 在多处理进程之间共享双端队列