Skip to content

Instantly share code, notes, and snippets.

@evu
Forked from pratos/condaenv.txt
Last active July 31, 2018 13:52
Show Gist options
  • Save evu/71b96e945f1182a1306d45b9b7605b44 to your computer and use it in GitHub Desktop.
Save evu/71b96e945f1182a1306d45b9b7605b44 to your computer and use it in GitHub Desktop.
To package a conda environment (Requirement.txt and virtual environment)
# To create a conda environment:
conda create --name <environment-name> python=<version:2.7/3.5>
# To create a requirements.txt file:
conda list
conda list -e > requirements.txt
# To export environment to a file:
activate <environment-name>
conda env export > <environment-name>.yml
# To import the exported environment:
conda env create -f <environment-name>.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment