MacOS – Delete key inserts a space on Python interpreter after upgrading to Catalina

catalinakeyboardmacospythonterminal

I recently upgraded to Catalina on my Macbook Pro (2015) and have this bizarre issue:

If I open up the Python interpreter in Terminal, I am able to type normally except for when I press the delete key. When I do that, it inserts a space. This persists across all my Conda environments, as well as native Python installation.

I tried restarting, and plugging in an external keyboard, and the issue persists.
The delete key seems to work normally on everything else I've tried. It also works on my shell (zsh) and on interpreters for other languages.

Has anyone else run into this issue?

Best Answer

So after some further testing, it looked like it was an issue with only certain virtual environments that I was using that I had reconfigured by following the guide on anaconda:

https://www.anaconda.com/how-to-restore-anaconda-after-macos-catalina-update/

My system python had also been set to the conda one by default by this, which was why I was getting the issue.

I just ended up creating a new environment and reinstalling all my packages.