本文介绍了“进口wx"在 Windows XP 上安装 wxPython 后失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载并安装了这个版本的 wxPython 以用于我的 Python 2.6 安装:

I downloaded and installed this version of wxPython for use with my Python 2.6 installation:

http://downloads.sourceforge.net/wxpython/wxPython2.8-win32-unicode-2.8.9.1-py26.exe

当我运行 Python 并尝试导入 wx 时,出现以下错误:

When I run Python and try to import wx, I get the following error:

C:\Program Files\Console2>python
Python 2.6 (r26:66721, Oct  2 2008, 11:35:03) [MSC v.1500 32 bit (Intel)] on win32
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 45, in <module>
    from wx._core import *
  File "c:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 4, in <module>
    import _core_
ImportError: DLL load failed: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.
>>>

我已经尝试删除 wxPython 并再次安装,但我遇到了同样的错误.我该如何解决这个问题?

I have already tried removing wxPython and installing again and I got the same error. How can I fix this problem?

推荐答案

我不想这么说,但我遇到了同样的问题,并且重新启动后导入工作正常.

Hate to say this, but I had the same problem, and and import worked fine after a reboot.

这篇关于“进口wx"在 Windows XP 上安装 wxPython 后失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-07 07:00