问题
import wx.lib.activex
fails with the supplied version of wx in Enthought Canopy or EPD on Windows. How can I get the activex container to work with the Enthought Python Distributions?
回答1:
First of all, it's necessary to install comtypes, which is a dependency not available through the Enthought package manager.
The more serious problem however, is that Enthought seem to have erroneously omitted the two myole4ax.* files which are necessary to use the activex container in wx Python. You can copy these files by downloading the wxPython-src tarball from the project page, and copying the two myole4ax.* files (e.g. from wxPython-src-2.8.12.1\wxPython\wx\lib) to the %python root%\Lib\site-packages\wx\lib folder.
来源:https://stackoverflow.com/questions/19019988/wx-lib-activex-fails-to-import-using-enthought-canopy-and-epd