Is it possible to kill a process on Windows from within Python?

I would think you could just use taskkill and the Python os.system()

import os
os.system("taskkill /im make.exe")

Note: I would just note you might have to fully qualify the taskkill path. I am using a Linux box so I can’t test…

Leave a Comment