最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

conda - Why do I get multiple environments listed in my terminal line? - Stack Overflow

programmeradmin1浏览0评论

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.

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.

Share Improve this question asked yesterday Hayley ChangHayley Chang 31 bronze badge New contributor Hayley Chang is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
Add a comment  | 

1 Answer 1

Reset to default 0

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
发布评论

评论列表(0)

  1. 暂无评论