user697911
user697911

Reputation: 10581

Activate environment in Anaconda3

I have 3 environments now:

[abigail@localhost anaconda3]$ conda info --envs
# conda environments:
#
mlearing                 /home/abigail/anaconda3/envs/mlearing
mlearning2               /home/abigail/anaconda3/envs/mlearning2
root                  *  /home/abigail/anaconda3

I want to switch to env 'mlearing':

[abigail@localhost anaconda3]$ source envs/mlearing/bin/activate 
(root) [abigail@localhost anaconda3]$ conda info --envs

But it looks like it still sticks the root env:

(root) [abigail@localhost anaconda3]$ conda info --envs
# conda environments:
#
mlearing                 /home/abigail/anaconda3/envs/mlearing
mlearning2               /home/abigail/anaconda3/envs/mlearning2
root                  *  /home/abigail/anaconda3

How to switch to a different env?

Upvotes: 1

Views: 3351

Answers (2)

mahendra kamble
mahendra kamble

Reputation: 1395

Linux, OS X: source activate <environment_name>

Windows: activate <environment_name>

Upvotes: 2

Suresh2692
Suresh2692

Reputation: 3928

Have you tried?

conda activate envname

Upvotes: 0

Related Questions