Created
July 16, 2020 10:19
-
-
Save zorbax/550be0d730419f540a72310c13ba0c2a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # Backup conda environments | |
| envs=$(conda env list | awk -e '$0 ~ /^\w/ {print $1}') | |
| for env in ${envs} | |
| do | |
| source activate ${env} | |
| conda env export > ${env}.yml | |
| conda deactivate | |
| done | |
| # Restore conda environments | |
| for i in *yml; do conda env create -f ${i}; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment