Skip to content

Instantly share code, notes, and snippets.

@numberwhun
Forked from qheuristics/conda_cheat
Created November 22, 2015 03:18
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 numberwhun/b5a5cf9e9abffe4ac41b to your computer and use it in GitHub Desktop.
Save numberwhun/b5a5cf9e9abffe4ac41b to your computer and use it in GitHub Desktop.
conda cheatsheet
to create a new environment
conda create -n mynewenviron package1 package2 etc
conda create -n newenv --clone ~anaconda
to remove an environment
conda remove -n myenvirontoremove --all
always start with
conda update conda
or run
conda update anaconda
to test removing a package
conda remove --dry-run -n myenv package1
to remove a package
conda remove -n myenv package1
to remove an entire environment
conda remove -n test --all (you can also simply delete the folder)
install a package in the base environment
conda install ipython-notebook
install a package in a given environment
conda install -n myenv ipython-notebook
update a package
conda update -n myenv mypackage
display summary info about conda setup
conda info
list available environments and currently activated environment
conda info -e
display installed packages in currently activated environment and write to file
conda list -e > requirements.txt
display installed packages in given environment
conda list -e -n myenv
References
==========
http://docs.continuum.io/conda/intro.html
http://continuum.io/blog/conda
http://continuum.io/blog/conda_packaging
http://technicaldiscovery.blogspot.nl/2013/12/why-i-promote-conda.html
https://speakerdeck.com/teoliphant/packaging-and-deployment-with-conda
http://stackoverflow.com/questions/20928566/conda-installing-local-development-package-into-single-conda-environment
https://gist.githubusercontent.com/iansheridan/870778/raw/caadec8fcbb94a5416a8298424529be4f2ef74db/git-cheat-sheet.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment