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