conda environment.yml specify python version code example
Example 1: conda create environment based on requirements.txt
# using pip
pip install -r requirements.txt
# using Conda
conda create --name <env_name> --file requirements.txt
Example 2: anaconda duplicate environment
conda create --name myclone --clone myenv
Example 3: conda activate env
conda activate myenv