import os import signal os.kill(pid, signal.SIGTERM) #or signal.SIGKILL
References
https://stackoverflow.com/questions/17856928/how-to-terminate-process-from-python-using-pid
import os import signal os.kill(pid, signal.SIGTERM) #or signal.SIGKILL
References
https://stackoverflow.com/questions/17856928/how-to-terminate-process-from-python-using-pid