Python py2exe all-in-one

I am very new to python and I wanted to compile my code in .exe so that everyone could use. I create the .exe file without any problems, but instead of being in the all-in-one file, I get a folder that looks like this:

http://i.stack.imgur.com/gi2kK.png

I tried pygame2.exe (assuming it was pygame since this game was made in pygame), but I get an error when I use a pre-made script from them (something about the build_exe error).

In any case, is there a way to combine all these files into one exe? Thanks.

+4
source share
1 answer

Instructions are available here: http://www.py2exe.org/index.cgi/SingleFileExecutable

See the sample bundle files at the end.

+2
source

Source: https://habr.com/ru/post/1345823/


All Articles