Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用了 python 版本 2.7.1。然后安装wxPython2.8-win32-ansi-py27
wxPython2.8-win32-ansi-py27
我是 import wx.html2 但 python shell 打印了 Import 错误。
ImportError: No module named html2
wx.html 模块不存在..如何解决?
html2 模块在 wxPython 2.8 中不可用。它是 wxPython 2.9 中的新功能。请注意,您需要像这样导入它:
import wx.html2