Skip to content

Instantly share code, notes, and snippets.

@SHDShim
Created April 16, 2019 04:24
Show Gist options
  • Save SHDShim/9fd78c3604b7a8db6ad92fcd55af6564 to your computer and use it in GitHub Desktop.
Save SHDShim/9fd78c3604b7a8db6ad92fcd55af6564 to your computer and use it in GitHub Desktop.
How to package a conda environment (environment.yml or requirements.txt)

Installing/Packaging with requirements.txt

create an environment from requirements.txt

conda create --name <env_name> --file requirements.txt

make a requirements.txt

conda list -e > requirements.txt 

create an environment from environment.yml

conda env create -f environment.yml

make an environment.yml

conda env export > environment.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment