<back space> not functional in python and ipython in shell
Miniconda (or something related to conda's Python) seems to have a problem with Manjaro's default $TERM variable. In my case, it was rxvt-unicode-256color
. When I set it to xterm
, the problem went away.
You can do this by running export TERM=xterm
.
I'm still not sure why this problem occurs, and why only occasionally, but this fixed it for me.
I had the same problem, but I finally figured out.
0x00 Cause
I don't know for sure. But since re-install helps, I guess the previous version of python was not installed correctly.
0x01 Solution (0 - recommended)
This is a better solution.
Reinstall conda by:
- See all your environment by
conda activate
andconda env list
- Back up ALL your current settings
conda env export -n {your_env_name} > {your_env_name}_condaenv.yml
- Uninstall conda (See Official Guide)
- Reinstall conda (See Official Guide)
- Import environments by
conda env create -f {file_name_you_saved}.yml
0x01 Solution (1 - not recommended)
WARNING: this solution only let you install a new python that works, which is not recommended.
- type
pip
see if you have installed pip - If you get
Command 'pip' not found, but can be installed with:sudo apt install python-pip
then you need to installpip
first. - Check if the problem solved. If not, use
pip install gnureadline
- The problem should be solved.
0x02 Possible Duplicates (but none of them are answered):
- https://superuser.com/questions/641095/bash-how-to-globally-fix-h-and-backspace-problems
- Backspace character weirdness
0x03 Reference