【问题标题】:Pyinstaller does not support Com Server and py2exe does not maintained in recent python3Pyinstaller 不支持 Com Server 和 py2exe 在最近的 python3 中不维护
【发布时间】:2020-03-31 04:46:42
【问题描述】:

我们正在将一个使用 com 服务器的项目从 python 2 迁移到 3。以前我们使用 py2exe,它在 python 2 中运行良好,但在最近的 Python 3 版本中不再维护。我们也尝试过 Pyinstaller,不幸的是,它不支持 5 年前的 com 服务器。我们最后的手段可能是使用 python 3.4,它是 py2exe 支持的最新版本。但在此之前,只是在这里问问题是否有人有类似的情况并有适当的解决方案。

【问题讨论】:

标签: python pyinstaller py2exe python-2to3


【解决方案1】:

您无法使用 PyInstaller 部署 win32 COM 服务器,因为引导加载程序不提供该功能。

如果您想获得 COM 支持,您需要自己编程;换句话说,创建一个运行 COM 服务器的 python 脚本,为您的 DLL/exe 提供服务。你可以基于 py2exe 代码。

【讨论】:

    猜你喜欢
    • 2012-08-13
    • 2013-12-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-07-24
    • 1970-01-01
    • 1970-01-01
    • 2016-07-09
    相关资源
    最近更新 更多