import os os.system("pyinstaller --onefile dhere.py --icon icon.ico")