export conda environment code example

Example 1: conda create environment

conda create -n myenv python=3.6

Example 2: conda export environment

# conda export environment.yml
conda env export > environment.yml

# conda create environment from file (Same environment name)
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: conda list environments

conda info --envs

Example 5: conda write environment.yml

conda env export > environment_droplet.yml

Example 6: conda env

conda env list

Tags:

Misc Example