anaconda environment code example
Example 1: conda remove environment
conda remove --name myenv --all
Example 2: conda create env from yml
conda env create -f environment.yml
Example 3: conda create environment based on requirements.txt
# using pip
pip install -r requirements.txt
# using Conda
conda create --name --file requirements.txt
Example 4: How do I set Conda to activate the base environment by default?
conda config --set auto_activate_base true
Example 5: conda env
conda create -n myenv python=3.6
Example 6: conda list environments
conda info --envs