2

I previously have the problem that in pdb debuging, when I type arrow keys, it generates ^[[D^[[A^[[B^[[C, someone says I have to reinstall python and suggests to do

conda remove --force python
conda install python

but after the

conda remove --force python

then run conda only gives

-bash: /home/user/anaconda2/bin/conda: /home/user/anaconda2/bin/python: bad interpreter: No such file or directory

I should not follow the advice...can someone help me?

K.Wanter
  • 969
  • 3
  • 14
  • 30
  • Conda runs on Python. When you removed Python, you effectively removed Conda as well. What system are you on? – James Jan 06 '18 at 04:32
  • Adding to James's comment, the better way reinstall python is to reinstall Anaconda itself or create a new environment. You can use this [thread](https://stackoverflow.com/questions/41535881/how-do-i-upgrade-to-python-3-6-with-conda) as a reference. – nitred Jan 06 '18 at 04:34
  • @James, I'm using ubuntu 14.04LTS – K.Wanter Jan 06 '18 at 05:00
  • @Nitred reinstalled Anaconda, can you suggest how to solve the pdb arrow key problem? – K.Wanter Jan 06 '18 at 08:26
  • @K.Wanter Unfortunately I have no experience with `pdb`. Maybe you could give [this](https://stackoverflow.com/questions/10140198/python-debugger-pdb-stopped-handlying-up-down-arrows-shows-a-instead) a try. – nitred Jan 06 '18 at 15:30

0 Answers0