Python py2exe 多合一

编程入门 行业动态 更新时间:2024-10-23 05:41:23
本文介绍了Python py2exe 多合一的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我对 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 多合一

本文发布于:2023-07-04 17:21:24,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1027022.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Python   py2exe   多合一

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!