【问题标题】:why wx.html2 module is not exist?为什么 wx.html2 模块不存在?
【发布时间】:2013-11-22 16:20:03
【问题描述】:

我使用了 python 版本 2.7.1。然后安装wxPython2.8-win32-ansi-py27

我是导入 wx.html2 但 python shell 打印导入错误。

ImportError: No module named html2

wx.html 模块不存在.. 如何解决?

【问题讨论】:

    标签: wxpython wx.html2


    【解决方案1】:

    html2 模块在 wxPython 2.8 中不可用。它是 wxPython 2.9 中的新功能。请注意,您需要像这样导入它:

    import wx.html2
    

    【讨论】:

    • 我找到并安装了 wxPython 2.9。所以我导入 wx.html2,然后没有错误。谢谢:D
    猜你喜欢
    • 2021-05-22
    • 2016-11-12
    • 2016-09-03
    • 1970-01-01
    • 2012-06-23
    • 1970-01-01
    • 2021-04-07
    • 2018-12-28
    • 2020-08-08
    相关资源
    最近更新 更多