Python script to single .exe

It’s plain annoying when you want to show someone your amazing Python script but they don’t have Python (and all of your libraries) installed. It’d be nice to just bundle everything in one executable, wouldn’t it?

Download py2exe !

When installed, open a command prompt and enter:

build_exe "" --bundle-files 0 -O -c

…which will gather all needed libraries, optimize them (the -O option), compress them (-c) and bundle them into one big file inside a folder called ‘dist’.