Last active
November 13, 2020 12:22
-
-
Save qheuristics/8943338 to your computer and use it in GitHub Desktop.
conda cheatsheet
This file contains 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 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