conda export environment requirements.txt code example
Example 1: conda create environment based on requirements.txt
# using pip
pip install -r requirements.txt
# using Conda
conda create --name --file requirements.txt
Example 2: anaconda duplicate environment
conda create --name myclone --clone myenv
Example 3: clone an environment conda
conda create --name myclone --clone myenv
Example 4: conda create environment based on requirements.txt
pip freeze > requirements.txt