我使用pyinstaller将.py文件转换为可执行文件,但是它没有工作

发布于 2025-01-26 05:07:29 字数 173 浏览 4 评论 0原文

编辑:我正在使用“随机”库和“ OS”库,它们是否正在干扰文件的执行?

早上好,我正在创建一个在终端中运行的挂钩游戏,没有打开任何图形窗口,我使用pyinstaller将.py文件转换为可执行文件。当我通过命令运行时。/my_file正常工作,但是如果我尝试通过双击来运行它,它就不会打开任何东西!有人知道如何解决吗?

EDIT: I'm using the "random" library and the "os" library, could they be interfering with the file's execution?

Good morning, I'm creating a hangman game that runs all in the terminal, doesn't open any graphical window, I used pyinstaller to turn my .py file into an executable. When I run it through the command ./My_file it works normally, but if I try to run it by double clicking it doesn't open anything! Does anyone know how to solve?

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

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

发布评论

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