pyinstaller icon image

C++
pyinstaller.exe --icon=test.ico -F --noconsole test.py
Source

Also in C++: