Skip to content

Instantly share code, notes, and snippets.

@d3banjan
Last active April 9, 2018 11:53
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 d3banjan/c00b9e4486bb1a3f0ac1090cc14d5a4c to your computer and use it in GitHub Desktop.
Save d3banjan/c00b9e4486bb1a3f0ac1090cc14d5a4c to your computer and use it in GitHub Desktop.
ankhi - setting up the code

what is a conda environment?

  • in python or R, we need to install packages to add functionality to our programs so that we do not have to program everything by ourselves.
  • sometimes as the version of a package evolves, it might change behaviour. As a result of this, the code that we wrote two years ago, might not run out of the box anymore.
  • even if we do get our code to run properly, it is truly a mightmare to send our code to others and expect them to run it.
  • python environments are a solution intended for the above scenarios, where an environment can be trusted to maintain a specfic version of a packages, even if the packages are upgraded. It also becomes easy to send our code to someone else, where they can install the software mentioned in our project directory called requirements.txt.
  • conda environments offer the same feature as above, but for both python and R.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment