conda cheatsheet
getting started
- conda info
- conda update -n base conda
- conda update anaconda
working with environments
- conda create --name ENVNAME python=3.6
- conda activate ENVNAME
- conda activate /path/to/enviroment-dir
- conda deactivate
- conda list
- conda list --name ENVNAME
- conda list --revisions
- conda list --name ENVNAME --revisions
- conda install --name ENVNAME --revision REV_NUMBER
- conda remove --name ENVNAME --all
sharing enviroments
- conda create --clone ENVNAME --name NEWENV
- conda env export --name ENVNAME > envname.yaml
- conda env create --file envname.yaml
- conda env create
- conda list --explicit > pkgs.txt
- conda create --name NEWENV --file pkgs.txt
Using packages and channels
- conda search PKGNAME=3.1
- anaconda search FUZZYNAME
- conda install conda-forge::PKGNAME
- conda install PKGNAME==3.1.4
- conda config --add channels CHANNELNAME
Additional useful hints
- conda search PKGNAME --info
- conda clearn --all
- conda uninstall PKGNME --name ENVNAME
- conda update --all --name ENVNAME
- conda install --yes PKG1 PKG2
- conda config --show