pyinstaller icon code example
Example 1: pyinstaller icon image
pyinstaller.exe --icon=test.ico -F --noconsole test.py
Example 2: pyinstaller
pyinstaller --onefile --windowed --icon=<project-logo>.ico --add-data "<folder>;<folder>" <filename.py>
Example 3: pyinstaller
pip install pyinstaller
pyinstaller <file name>.py
pyinstaller --onefile <file name>.py