When I use the command:
pyinstaller.exe --icon=test.ico -F --noconsole test.py
All icons do not change to test.ico. Some icons remain as the
Here is how you can add an icon while creating an exe file from a Python file
open command prompt at the place where Python file exist
type:
pyinstaller --onefile -i"path of icon" path of python file
Example-
pyinstaller --onefile -i"C:\icon\Robot.ico" C:\Users\Jarvis.py
This is the easiest way to add an icon.