how to activate conda environment on linux terminal code example

Example 1: How do I set Conda to activate the base environment by default?

conda config --set auto_activate_base true

Example 2: how to activate conda environment on linux terminal

conda create --name  #this creates the environment
conda activate  #this activates the environment

#if conda activate  does not work then try the following
source ~/anaconda3/etc/profile.d/conda.sh
conda activate 

Example 3: make a new environment conda

conda create -n test_env python=3.6.3 anaconda

Example 4: how to activate conda environment

conda activate myenv

Tags:

Misc Example