Skip to content

Instantly share code, notes, and snippets.

@maptastik
Created January 10, 2019 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maptastik/013e2d5891628e26a78a2dfd6fde3b81 to your computer and use it in GitHub Desktop.
Save maptastik/013e2d5891628e26a78a2dfd6fde3b81 to your computer and use it in GitHub Desktop.

This is an example of exporting an environment so it can be used to create a new environment. It will also show how to specify a channel that should be included in the build process

First, you'll need to activate the environment you want to use.

activate old-environment

Then export then environment to environment.yml

conda env export -c esri > environment.yml

Finally, create the new environment

conda env create -n new-environment --file path-to-wherever-yousaved/environment.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment