conda yml code example
Example 1: conda create env from yml
conda env create -f environment.yml
Example 2: conda create environment based on requirements.txt
# using pip
pip install -r requirements.txt
# using Conda
conda create --name <env_name> --file requirements.txt
Example 3: conda list environments
conda info --envs
Example 4: conda write environment.yml
conda env export > environment_droplet.yml
Example 5: conda activate env
conda activate myenv