conda environment with requirements.txt tutorial code example
Example 1: conda install requirements.txt example
conda install --file requirements.txt
Example 2: 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 3: conda save environment to yaml
# save conda env to .yml
conda env export > environment.yml