how to taskkill a program python code example Example: python kill process windows import os os.system("taskkill /im make.exe")