python 3.6.3 上的 comtype 错误

comtype error on python 3.6.3

我在 python 3.6.2 上开发了自动化软件,并为此使用了 pywinauto 模块。我与 python 3.6.3 用户分享了此软件。在 3.6.3 上尝试 运行 我的应用程序时,它崩溃了。崩溃发生在 "from pywinauto.application import Application" 行。它指出 "comtype" 中缺少某些属性。我只是通过从我的 3.6.2 到 3.6.3 版本的用户复制粘贴 "comtype" 的所有相关文件来解决它。然后它工作完美。我的问题是:有什么常规的方法可以解决这个问题吗?

通过 "comtypes" 个模块的手册 installation/update 常规解决。