如何将PY转换为EXE,但仅指定模块

发布于 2025-01-25 21:24:13 字数 103 浏览 3 评论 0原文

我需要一些帮助,将我的Python应用程序转换为EXE可执行文件。
但是,当我在输出文件夹中列出所有文件时,它显示了我所有已安装的Python模块,不仅是导入的模块,因此该如何解决?

I need some help to convert my Python app to an exe executable file.

But when I list all the files in the output folder, it shows all my installed Python modules, not only the imported ones, so how can I fix that?

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

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

发布评论

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

评论(1

游魂 2025-02-01 21:24:13

尝试使用虚拟环境和pip安装仅需所需的模块。这更多是解决方法,而不是实际解决方案。

Try using a virtual environment and pip install only the required modules. This is more of a workaround rather than an actual solution.

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