Hayley Chang
Hayley Chang

Reputation: 3

Why do I get multiple environments listed in my terminal line?

I am trying to activate my conda environment. I downloaded conda and then run

conda init
conda env create -n my_environment -f environment.yml
conda activate my_environment

and then I get

(my_environment) (.conda) (base) bash-5.1$ 

in my terminal. Why are three different environments being run or this expected behavior?

I tried deleting conda and redownloading it, removing all instances of my env and creating it again.

Upvotes: 0

Views: 27

Answers (1)

Lewis
Lewis

Reputation: 834

Conda environments are designed to be layered, when you activate an environment you're adding a new layer on top of the base environment. There are not three environments running simultaneously.

What you see is

  • (base) - this is the base environment of conda, it's the environment in which conda itself operates
  • (.conda) - this just indicates that you are within the conda's internal environment
  • (my_environment) - this indicates that my_environment is the currently activated environment, which confirms your environment is active

Upvotes: 0

Related Questions