Pyinstaller打包后的exe文件打开之后闪退。

toutie_toutu 2019-04-21 11:12:56
做alien invasion项目,最后打包成exe,显示打包成功,但是打开文件闪退。请问这是什么原因啊?我的电脑是win10 64位。我把exe文件放到D盘,在cmd上运行提示如图二,也是闪退。
...全文
952 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
littlekan小阚 2021-10-11
  • 打赏
  • 举报
回复

我的“win11 家庭中文版 x64”也一样,但是报出的是错误:

pygame 2.0.2 (SDL 2.0.16, Python 3.10.0)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
  File "intro.py", line 10, in <module>
FileNotFoundError: No such file or directory.
[864] Failed to execute script 'intro' due to unhandled exception!

img

37,720

社区成员

发帖
与我相关
我的任务
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
  • 脚本语言(Perl/Python)社区
  • IT.BOB
加入社区
  • 近7日
  • 近30日
  • 至今

试试用AI创作助手写篇文章吧