This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Python base versus specific environments

When working with conda environments, I can easily navigate to a specific environment simply by shooting >conda activate <name_environ>... for instance, I have a conda environment called tcd19_env, so I just type >conda activate tcd19_env in the shell and walla...

I get into: (tcd19_env) cyntsc@csc:

But, when working with envs, there is something that confuse me a little. I have an environment called jn_tesis_env, so I typed >source jn_tesis_env/bin/activate, and the environment is loaded, but preceded by the base environment. So, What is happening that?, and What it means?

(jn_tesis_env) (base) cyntsc@csc:

I am looking to comprehend the logic between these two environment options. Thanks CSC

environments

This is not strictly a bioinformatics question. Are you sure this is not just a glitch with the script that shows (environment_name) on the prompt?

1 answer

source activate has been deprecated since conda 4.8 (or maybe earlier), so what I expect you're seeing is a bug in how just sourcing the activate script sets PS1. Try to avoid doing that and stick to using conda activate.

Ok, you're both right. This is not a bioinformatic quest and in fact 'source' envs are out of use. Tnks.

Please accept Devon's answer so the question is marked as resolved.

Log in to answer this question.