Why doesn’t this Python keyboard interrupt work? (in PyCharm)
I know this is an old question, but I ran into the same problem and think there’s an easier solution: In PyCharm go to “Run”https://stackoverflow.com/”Edit Configurations” and check “Emulate terminal in output console”. PyCharm now accepts keyboard interrupts (make sure the console is focused). Tested on: PyCharm 2019.1 (Community Edition)