Skip to content

Instantly share code, notes, and snippets.

@skurscheid
Created May 22, 2020 09:02
Show Gist options
  • Save skurscheid/ed475461a9646320066c7cd293839bbe to your computer and use it in GitHub Desktop.
Save skurscheid/ed475461a9646320066c7cd293839bbe to your computer and use it in GitHub Desktop.
How to activate conda environments within a bash script
#!/bin/bash
eval "$(conda shell.bash hook)"
conda activate <env-name>
# https://github.com/conda/conda/issues/7980#issuecomment-492784093
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment