Python base versus specific environments
1
0
Entering edit mode
3.7 years ago
cyntsc10 • 0

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 • 706 views
ADD COMMENT
0
Entering edit mode

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?

ADD REPLY
2
Entering edit mode
3.7 years ago

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.

ADD COMMENT
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode

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

ADD REPLY

Login before adding your answer.

Traffic: 1933 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6