python conda save environment code example
Example 1: conda env
conda create -n myenv python=3.6
Example 2: conda save environment to yaml
# save conda env to .yml
conda env export > environment.yml
conda create -n myenv python=3.6
# save conda env to .yml
conda env export > environment.yml