- Create conda environment:
If you are creating a new environment, use the following commands:
conda create --name new-env python=3.11
conda activate new-env
If you are using an existing environment, use the following command:
conda env create --name new-env --file=env.yml
- Update the required Python libraries if dependencies have changed:
conda env update --name new-env --file env.yml --prune
- Always update the requirements file after installing new libraries:
conda env export --no-builds | grep -v "^prefix: " > env.yml