how to import pyinstaller in a pyinstaller script code example Example: how to use pyinstaller pyinstaller -- onefile <file name>