0

Both my shell emulators (konsole on Kubuntu) as well as the virtuals terminals (Alt+F2, etc.) now display the "(base)" in front of the usual "user@laptop".

I presume some recent update or package installation is causing this.

It is quite annoying. Where does that come from and how do I get rid of it again?

EDIT: So it is conda and its coming from the following lines in .bashrc

# >>> conda initialize >>>
!! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/username/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/home/username/anaconda3/etc/profile.d/conda.sh" ]; then
        . "/home/username/anaconda3/etc/profile.d/conda.sh"
    else
        export PATH="/home/username/anaconda3/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda initialize <<<
2

1 Answer 1

1

This may mean that you are using your anaconda base environment. Anaconda changes your environment a little bit by adding certain libraries and executables to the respective paths. In particular, if picks up the anaconda version of python and related tools.

You can install and activate/deactivate other anaconda environments, the prompt changes accordingly.

It mostly does not interfere with the rest of the system, but some programs may be affected.

I admit there may be more reasons to have "(base)" in your prompt, just anaconda seems to be the most common.

8
  • Indeed, I installed anaconda one day ago. That's quite invasive behavior tbh. Do you know a tutorial how to fix things?
    – shuhalo
    Commented Nov 27, 2020 at 3:52
  • 1
    Never checked it, but anaconda itself is a bit invasive too, so I consider the prompt useful. If you want to get out of anaconda use coda deactivate, and conda activate brings it back again.
    – Ott Toomet
    Commented Nov 28, 2020 at 2:20
  • I wonder whether the activation of conda on start up can be deactivated altogether.
    – shuhalo
    Commented Nov 29, 2020 at 17:10
  • 1
    So you have conda activated right after reboot?
    – Ott Toomet
    Commented Nov 29, 2020 at 17:19
  • 1
    I suspect you have something like conda activate in your .profile, or maybe in .bashrc. Do you know if other users also have anaconda activated when logging in? (I don't think so.) If yes, it must be in one of the corresponding system-wide files.
    – Ott Toomet
    Commented Dec 3, 2020 at 19:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .