-
-
Save evu/71b96e945f1182a1306d45b9b7605b44 to your computer and use it in GitHub Desktop.
To package a conda environment (Requirement.txt and virtual environment)
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
# 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