The easiest way to export a .yml
file from a conda environment is to first activate your environment by running:
conda activate myenv
And then run the following command that generated your .yml
file:
conda env export > youryml.yml
Finally, you can create a new environment using the .yml
file, like:
conda env create --name mynewenv --file=youryml.yml