When my python script is done running code i want to be able to kill the python script from windows command line only and close everything that has to do with python
the python window remains open after all code has been executed even though I have included exit() at the end of my code
i have tried
taskkill /IM py.exe
ERROR: The process "py.exe" not found.
taskkill /IM myScript.exe
ERROR: The process "myScript.exe" not found.
i cannot find any python processes in task manager
can anyone help?

taskkill /IM python.exe /F
This will force to kill the python.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With