“import wx” fails after installation of wxPython on Windows XP

前端 未结 9 1222
庸人自扰
庸人自扰 2021-01-13 23:49

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条回答
  • 2021-01-14 00:01

    Copy the Microsoft C runtime library v.9 files and manifest. That is, msvcr90.dll and microsoft.vc90.crt.manifest from folder python to the folder wx, tha is, folder which contains failed to start DLLs.

    Or install the Visual C++ 2008 Redistributable Package.

    0 讨论(0)
  • 2021-01-14 00:01

    I too have the same issue.Better install "Portable Python" IDE which comes with some nice modules including wxPython .You can start coding GUI immediately without the need to download a separate wxPython.The link , http://www.portablepython.com/

    0 讨论(0)
  • 2021-01-14 00:04

    you try to use the module wxpython 2.8.12.1 version, select the version of your python. you can download it here:

    http://www.lfd.uci.edu/~gohlke/pythonlibs/#wxpython

    0 讨论(0)
  • 2021-01-14 00:06

    Maybe too late, but I had the same problem and solved that by downloading that from their own website : wxPython2.8-win64-unicode-py27 In my case it initially wanted to setup in somewhere else than my python folder. So I changed it to be in ../python27/Lib/SitePackages/ Then it worked properly.

    I hope it helps.

    0 讨论(0)
  • 2021-01-14 00:09

    I was getting the same error.

    After some googling found this link to MSVC++ 2008 Redestributable and installed it.

    That solved the problem.

    0 讨论(0)
  • 2021-01-14 00:12

    Try the ANSI version instead of the Unicode one. IIRC it needs to match the Python 2.6 install to work properly.

    0 讨论(0)
提交回复
热议问题