Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
441 views
in Technique[技术] by (71.8m points)

wxpython - DLL load failed: 1% is not valid win32 application

import wx

Traceback (most recent call last):
  File "", line 1, in 
    import wx
  File "C:Python26libsite-packageswx-2.8-msw-unicodewx\__init__.py", line 45, in 
    from wx._core import *
  File "C:Python26libsite-packageswx-2.8-msw-unicodewx\_core.py", line 4, in 
    import _core_
ImportError: DLL load failed: %1 is not a valid Win32 application

I have tried python2.6 and python2.7 with several wxpython versions,they all turned out to be like this.All the versions are win64 as well as my OS,please hep!

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

As mentioned by the other fellow, make sure you have a 64-bit Python AND a 64-bit wxPython version downloaded. If one or the other is 32-bit, it won't work. Personally, I have never had any problems installing wxPython on Windows.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...