wx.lib.activex fails to import using Enthought Canopy and EPD

隐身守侯 提交于 2019-12-13 05:17:53

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!