Skip to content

Instantly share code, notes, and snippets.

@gonzalodiaz
Created June 6, 2020 09:21
Show Gist options
  • Save gonzalodiaz/943049f060d69eba03f2ce488b233f71 to your computer and use it in GitHub Desktop.
Save gonzalodiaz/943049f060d69eba03f2ce488b233f71 to your computer and use it in GitHub Desktop.
CreateEnvSh
#! /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