conda create requirements.txt from environment code example
Example 1: create requirements.txt conda
pip freeze > requirements.txt
# OR
conda list -e > requirements.txt
Example 2: conda create environment based on requirements.txt
pip freeze > requirements.txt