Skip to content

Instantly share code, notes, and snippets.

@RyanCCollins
Forked from pratos/condaenv.txt
Created December 24, 2018 12:36

Revisions

  1. Prathamesh created this gist Nov 30, 2016.
    16 changes: 16 additions & 0 deletions condaenv.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    # For Windows users# Note: <> denotes changes to be made

    #Create a conda environment
    conda create --name <environment-name> python=<version:2.7/3.5>

    #To create a requirements.txt file:
    conda list #Gives you list of packages used for the environment

    conda list -e > requirements.txt #Save all the info about packages to your folder

    #To export environment file
    activate <environment-name>
    conda env export > <environment-name>.yml

    #For other person to use the environment
    conda env create -f <environment-name>.yml
    1 change: 1 addition & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    # For Windows users