Skip to content

Instantly share code, notes, and snippets.

@ilkayisik
Last active August 31, 2024 00:38
Show Gist options
  • Save ilkayisik/0cf8b36df0abbb0dd7ec3edf2a285d71 to your computer and use it in GitHub Desktop.
Save ilkayisik/0cf8b36df0abbb0dd7ec3edf2a285d71 to your computer and use it in GitHub Desktop.
Sharing a conda environment
# Exporting the environment.yml file
# Activate the environment to export:
conda activate myenv
# go to the directory where you want the newly created .yml file to be
cd /Users/ilkayisik/Desktop/
# Export your active environment to a new file
conda env export > environment.yml
# Export your active environment to a new file to make sure it works across platform
conda env export --from-history > environment.yml
# Create the environment from the environment.yml file:
conda env create -f environment.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment