how to kill python process in terminal code example
Example 1: python kill process windows
import os
os.system("taskkill /im make.exe")
Example 2: linux kill python
ps -elf | grep python
kill -9 <whatever_the_PID_is>
import os
os.system("taskkill /im make.exe")
ps -elf | grep python
kill -9 <whatever_the_PID_is>