I was searching on how to save anaconda environment as requirement.txt files. I came across two commands:
- conda list --explicit > $dir_path/$file_name.txt
- conda list --export > $dir_path/$file_name.txt
These two created different two text files with different form of tabular structure.
- The explicit one created a file like this:
- while the export command created a file like this:
While both files do say that they can be used to recreate the environment(which I did try just to check and it works), I was confused why there are two commands for essentially the same feature. Why do these two commands exist and what are the specific usecases to use anyone of these.
THANKS IN ADVANCE.