Reduce pyinstaller executable size
问题 I have only one line of code input() written in python and packed with pyinstaller with option --onefile . The exe file is 4577 kB which is almost 5Mb. How can I reduce its size or exclude some auto-bundled libraries? 回答1: The .exe file you create using pyinstaller includes the python interpreter and all modules included in your script.Maybe, the modules you are using have a big library themselves. You can however try using py2exe but it might not work for all projects.The other way to get it