wxPython 导入错误:DLL 加载失败 [英] wxPython Import Error: DLL load failed

查看:56
本文介绍了wxPython 导入错误:DLL 加载失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 32 位 Windows 7 上安装了带有 Python 2.7 的 wxpython 2.8-unicode.

Installed wxpython 2.8-unicode with Python 2.7 on Windows 7 32-bit.

在导入过程中,出现以下导入错误:

During import, below Import Error occurs:

追溯

...\python27\site-packages\wx-2.8-msw-unicode\wx_core.py 在 <模块 >()

...\python27\site-packages\wx-2.8-msw-unicode\wx_core.py in < module >()

导入_核心_

导入错误:DLL 加载失败:找不到指定的模块.

Import Error: DLL load failed: The specified module could not be found.

重新安装 Python 扩展没有帮助.

Reinstalling the Python extension was not helpful.

使用安装程序安装扩展后出现错误有点出乎意料.如果有人遇到同样的问题并解决了问题,我会很高兴得到一些帮助.谢谢.

It's somewhat unexpected to get the error after installing the extension with the installer. If someone who had the same problem and resolved issue, it would be very nice for me to get some help. Thanks.

推荐答案

下面的代码对我有用,试试吧.

The below code worked for me, just try it out.

import wxversion
wxversion.select('3.0')
import wx

这篇关于wxPython 导入错误:DLL 加载失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆