There should be one of these files for every source code project. Copy the environment.yaml into your source code tree.
For this, edit environment.yaml
conda env create -f environment.yaml
conda activate test-project
To change the environment, adjust environment.yaml. Do this instead of directly calling conda install
because this forces all of the dependencies to be resolved at the same time, which from experience
works better than resolving the dependency versions separately.
After making the changes to your environment.yaml, run this:
conda env update -f environment.yaml