anaconda create environment with 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 <env_name> --file requirements.txt
Example 2: how to make a conda environment
conda create --name myenv
#to activate environment:
conda activate myenv
Example 3: conda write environment.yml
conda env export > environment_droplet.yml
Example 4: conda create environment based on requirements.txt
pip freeze > requirements.txt
Example 5: conda activate env
conda activate myenv
Example 6: anaconda clone environment
conda create --name myclone --clone myenv