我对 python 很陌生,我想将我的代码编译成 .exe 供每个人使用.我创建 .exe 没有问题,但它不是在一体机"类型的文件中,而是一个如下所示的文件夹:
I'm very new to python, and I wanted to compile my code into a .exe for everyone to be able to use. I create the .exe without a problem, but instead of it being in an "all-in-one" sort of file, I get a folder that looks like this:
i.stack.imgur/gi2kK.png
我尝试了 pygame2.exe(由 pygame 提供,因为这个游戏是在 pygame 中制作的)但是当我使用他们的预制脚本时出现错误(关于 build_exe 错误).
I tried pygame2.exe (provided courtesy of pygame, since this game was made in pygame) but I get an error when I use the pre-made script from them (something about a build_exe error).
无论如何,有没有办法将所有这些文件合并到一个 exe 文件中?谢谢.
Anyways, is there a way that I can combine all of these files into a single exe? Thanks.
推荐答案此处提供说明:www.py2exe/index.cgi/SingleFileExecutable
最后查看捆绑文件示例.
See example of Bundle Files in the end.
更多推荐
Python py2exe 多合一
发布评论