本文介绍了wxPython - 如何导入 wx.adv 模块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试根据 http://wxpython.org 使用 wx.adv/Phoenix/docs/html/adv.1classindex.html但我收到导入错误:没有名为 adv 的模块".

Trying to work with wx.adv according to http://wxpython.org/Phoenix/docs/html/adv.1classindex.htmlBut I'm getting "ImportError: No module named adv".

是否有安装程序或特殊的导入方式?是否已弃用...?

Is there an installer or a special way to import it? Is it deprecated...?

使用 Windows 和 Mac,Python 2.7.6,wxPython 3.0.

Using Windows and Mac, Python 2.7.6, wxPython 3.0.

推荐答案

您是否有可能认为您拥有 Phoenix/正在运行 Phoenix,但实际上并没有?

Is it possible you think you have Phoenix/are running Phoenix, but are in fact not?

在命令行上尝试(抱歉,在 Windows 上测试过,但也适用于 Mac):

Try on the command line (sorry, tested on windows, but should apply to Mac too):

Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>> wx.version()
'2.9.5.0 msw (classic)'

相对于

'3.0.1.dev76380 msw (phoenix)'

在带有 2.7.6 和 Phoenix 的 virtualenv 中.你想使用哪个类?如前所述,wx.adv 是 Phoenix,经典没有 wx.adv 开箱即用,东西可能在其他地方.

in a virtualenv with 2.7.6 and Phoenix. Which class do you want to use? As stated, wx.adv is Phoenix, classic does not have wx.adv out of the box and the things may be in other places.

这篇关于wxPython - 如何导入 wx.adv 模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-07 07:01