Search code examples
python-3.xanacondaubuntu-18.04gnome-terminalvirtual-environment

Ubuntu terminal starts with the Anaconda base environment (how to correct that?)


I have downloaded and installed the Anaconda distribution for Ubuntu (18.04) from [https://www.anaconda.com/distribution/#download-section] conform instructions some weeks ago. Everything worked fine.

Today I updated the packages in the Gnome terminal with:

source activate base
conda update --all --yes
conda deactivate
exit

Before I did this update, my terminal started with:

rene@mylaptop:~$

After the update a terminal session starts as follows (with the Anaconda base environment activated):

(base) rene@mylaptop:~$ 

How can I prevent this from happening / revert to the previous terminal settings? Any suggestions?


Solution

  • conda config --set auto_activate_base false
    

    This comes from a similar issue over here.