Python4Delphi驱动的程序,如何部署?

发布于 12-05 11:42 字数 231 浏览 3 评论 0原文

我的 Delphi 程序使用 Python4Delphi,Python 脚本使用一些标准库。部署我的程序时,我不需要整个 Python 安装,它必须与 python27.dll 一起使用。最少的必要文件集是什么? Python4Delphi 中的文档已过时,我不清楚......

感谢您的帮助。

My Delphi program uses Python4Delphi, and the Python script uses some standard libs. When deploying my program I don't want an entire Python installation, and it must work with python27.dll. What are the minimal set of necessary files? The document in Python4Delphi is dated and it's not clear to me...

Thanks for your help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

昇り龍2024-12-12 11:42:33

当我这样做时,我自己列出了我的嵌入式 python 应用程序工作所需的列表。

我记得这适用于 python15.dll:

  1. PythonXX.dll 应该可以工作,除了 Visual C++ 运行时 DLL 之外没有任何其他外部文件,这需要并排清单(请参阅 p4d wiki 页面)才能工作。

  2. 如果你想导入某些东西,那么你需要运送它以及它所依赖的任何东西。这意味着,要么选择您想要的部分 Python 标准库,要么选择全部。您不可能需要 Python 的所有标准库。但我不想没有操作系统和其他一些关键的操作系统。但决定权在你。

When I did this, I made the list myself, of what I needed for my embedded python application to work.

I remember this worked with python15.dll:

  1. PythonXX.dll should work, without any other external files other than the Visual C++ Runtime DLLs, which require a side-by-side manifest (see the p4d wiki page) to work.

  2. If you want to IMPORT something, then you need to ship it and anything it depends on. That means, either you pick part of the python standard libraries you want, or you pick all of it. There is no way you need all of Python's standard libraries. But I wouldn't want to live without OS and a a few other key ones. BUt the decision is yours.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文