how to activate anaconda 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: conda list environments
conda info --envs
Example 3: see conda enviroments
conda env list
Example 4: how to activate conda environment on linux terminal
conda create --name <env_name> #this creates the environment
conda activate <env_name> #this activates the environment
#if conda activate <env_name> does not work then try the following
source ~/anaconda3/etc/profile.d/conda.sh
conda activate <env_name>
Example 5: conda create environment from file
conda env create -f environment.yml