To update a conda environment given a .yml file
https://stackoverflow.com/a/43873901
conda activate myenv
conda env update --file environment.yml
Or without the need to activate the environment (thanks @NumesSanguis):
conda env update --name myenv --file environment.yml