PyInstaller to py2exe code example Example: convert .py to .exe using pyinstaller ! pip install pyinstalller ! pyinstaller --onefile pythonScriptName.py