Created
June 6, 2020 09:21
-
-
Save gonzalodiaz/943049f060d69eba03f2ce488b233f71 to your computer and use it in GitHub Desktop.
CreateEnvSh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash -e | |
environment_header=$(head -n 1 environment.yml) | |
environment_name=${environment_header/name: /} | |
conda remove --yes --quiet -n "${environment_name}" --all | |
conda env create --quiet --force -f environment.yml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment