How can I package up a python program for my friends? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I package up a python program for my friends?

I want to make tiny programs for my friends to use on their computers. but without them needing to download the python.exe. preferably of small, file wise, cause I use discord and need it to be smaller the 8mb limit. and easy cause I'm a beginner and don't know much py.

8th Aug 2020, 8:17 PM
Randomocity
Randomocity - avatar
1 Answer
+ 2
You can use Pyinstaller to convert python scripts to exe files. There are good tutorials about it if you search google for them. I'm not sure about the size of executables, but I guess they will easily become more than 8mb. One solution might be zipping them and if it didn't work you can look up google and also stackoverflow for ways to reduce pyinstaller result size.
8th Aug 2020, 8:36 PM
ΛM!N
ΛM!N - avatar