.exe从.py使用自动py-exe转换后没有工作

发布于 2025-01-18 09:21:56 字数 604 浏览 2 评论 0原文

每个人! 我是编程新手。

我遇到的问题是,我的 .exe 从 .py 文件转换后无法工作。 文件非常简单。它使用 pandas 将数据从 excel 加载到 scv,并仅记录日志时间。

我在转换过程中没有发现任何错误,但是当我打开 .exe 时,它​​仅显示光标闪烁的终端。 code example

我还为我的程序中未使用的其他安装的模块添加了“--exclude-module”。它有助于减少最终 .exe 文件的大小,但仍然不起作用。 排除模块

如果您有任何想法,请与我分享。

我在这个答案中找到了解决方案 https://stackoverflow.com/a/71626038/17618130 基本上它提供使用原始没有 auto-py-to-exe 的 Pyinstaller 但我发现它仍然只能在 Windows 服务器上工作,但不能在 Windows 10 上工作。所以我仍然需要 帮助(

everyone!
I'm new in programing.

I faced the problem that my .exe doesn't work after I converted it from .py file.
File is prety simple. It's load data from excel to scv using pandas and time just for the logs.

I haven't caught any errors during the convrting proccess, but when I open .exe, it shows only terminal with flickering cursor.
code example

I also add "--exclude-module" for other instaled modules which wasn't used in my program. It helped decrise size of the end .exe file, but still it doesn't work.
excluded modules

If you have any ideas, please share with me.

I found the solution in this answer https://stackoverflow.com/a/71626038/17618130 Basicly it offers to use raw Pyinstaller without auto-py-to-exe But i'v found that it is still working only on windows server, but don't work on Windows 10. So I still need help(

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文