How to use PyInstaller as a module code example Example: how to use pyinstaller pyinstaller -- onefile <file name>