generate executable from python script code example Example: create exe from python script pyinstaller --onefile pythonScriptName.py