如何将PY转换为EXE,但仅指定模块
我需要一些帮助,将我的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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试使用虚拟环境和
pip安装
仅需所需的模块。这更多是解决方法,而不是实际解决方案。Try using a virtual environment and
pip install
only the required modules. This is more of a workaround rather than an actual solution.