Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 880
Rene Avatar asked Feb 18 '19 18:02

Rene


People also ask

How do you get out of a base environment in Anaconda Ubuntu?

To exit the virtual environment, use the command conda deactivate .

How do you get out of conda base environment?

You can always use conda activate or conda deactivate to switch between your environments. You can directly activate the environment you wish to use by using conda activate . conda deactivate will deactivate your current active environment and change to the default environment which is the base environment.

Why does conda say base?

What is base environment in conda? Conda has a default environment called base that include a Python installation and some core system libraries and dependencies of Conda. It is a “best practice” to avoid installing additional packages into your base software environment.


1 Answers

conda config --set auto_activate_base false

This comes from a similar issue over here.

like image 74
Ryan Loggerythm Avatar answered Oct 17 '22 16:10

Ryan Loggerythm