how to convert python file to exe with icon code example Example: pyinstaller icon image pyinstaller.exe --icon=test.ico -F --noconsole test.py