Anaconda paths broken after username change
问题 I just changed my username on Ubuntu (17.10) and my Anaconda packages are messed up. For instance, when I run conda in the terminal, I get the following error: bash: /home/<new username>/anaconda3/bin/conda: /home/<old username>/anaconda3/bin/python: bad interpreter: No such file or directory How can I fix this without reinstalling Anaconda3? 回答1: $ lv home/<new username>/anaconda3/bin/conda will show you the below. #!/home/<old username>/anaconda3/bin/python # -*- coding: utf-8 -*- . . . The