Export an Anaconda Environment to a File

If you want others to have the exact same Python environment as yours truly, export your Anaconda environment with:

conda env export | grep -v "^prefix" > somefile.yml

You then just need to pass on the file (somefile.yml). The new environment may be created with:

conda env create -f somefile.yml