You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to PyInstaller
i want compile my script lower 4mb. how can i do it ?
bwoodsend
unread,
Jun 21, 2020, 4:40:11 AM6/21/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to PyInstaller
I'm afraid Python is not the language for anything that small. PyInstaller has to include a minimal working Python installation inside your program which is around 20MB - and that's before your code goes in it. Using the
--onefileoption allows it to compress some of it so you can get down to about 7MB. If you're determined, either translate your script in C++ or maybe try Nuitka which tries to do that automatically.