conda env update --name myenv --file environment.yml --prune #--prune uninstalls dependencies which were removed from environment.yml