0% found this document useful (0 votes)
162 views1 page

Conda Cheatsheet

This document provides a cheat sheet for using common commands to manage conda environments and packages, including creating and activating environments, installing and updating packages, and searching for available packages. It also covers managing different Python versions with conda and configuring package sources through the .condarc file. The commands shown allow users to easily set up virtual environments with specific packages and versions of Python.

Uploaded by

prerit_t
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
162 views1 page

Conda Cheatsheet

This document provides a cheat sheet for using common commands to manage conda environments and packages, including creating and activating environments, installing and updating packages, and searching for available packages. It also covers managing different Python versions with conda and configuring package sources through the .condarc file. The commands shown allow users to easily set up virtual environments with specific packages and versions of Python.

Uploaded by

prerit_t
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Conda user cheat sheet Managing packages, including Python

conda list View list of packages and versions installed in


For full documentation of any command, type the command followed by --help.
conda create --help active environment
TIP: Many options after two dashes (--) have shortcuts.
conda search beautiful-soup Search for a package to see if it is available to
conda create --help or conda create -h
conda install

Managing conda and anaconda conda install -n bunnies beautiful-soup Install a new package
NOTE: If you do not include the name of the new
conda info Verify conda is installed, check version # environment (-n bunnies) it will install in the current
active environment.
conda update conda Update conda package and environment manager TIP: To view list of all packages available through conda
to current version install, visit http://docs.continuum.io/anaconda/pkg-docs.html.

conda update andaconda Update the anaconda meta package (the library of conda update beautiful-soup Update a package in the current environment
packages ready to install with conda command)
conda search --override-channels -c pandas bottleneck Search for a package in a
specific location (the pandas channel on
Anaconda.org)
Managing environments NOTE: Alternativley, go to Anaconda.org in the browser
and search by package name. This will show the specific
conda info --envs or conda info -e Get a list of all my environments, active channel (owner) through which it is available.
environment shown with *
conda install -c pandas bottleneck Install a package from a specific channel
conda create --name snowflakes biopython Create an environment and install program(s)
or TIP: To avoid dependency conflicts, install all programs in
conda search --override-channels -c defaults beautiful-soup Search for a package
conda create -n snowflakes biopython the environment (snowflakes) at the same time. to see if it is available from the Anaconda repository
TIP: Environments install by default into the envs directory
in your conda directory. You can specify a different path; source activate bunnies (Linux, Mac) Activate the environment where you want to
see conda create --help for details. activate bunnies (Windows) install a package and install it with pip (included
pip install see with Anaconda and Miniconda)
source activate snowflakes (Linux, Mac) Activate the new environment to use it
activate snowflakes (Windows) TIP: Activate prepends the path to the snowflakes environment. conda install iopro accelerate Install commercial Continuum packages

conda create -n bunnies python=3.4 astroid Create a new environment, specify Python version

conda create -n flowers --clone snowflakes Make exact copy of an environment Removing packages or environments
conda remove --name bunnies beautiful-soup Remove one package from any named
environment
Managing Python
conda remove beautiful-soup Remove one package from the active environment
conda search --full-name python Check versions of Python available to install
or conda remove --name bunnies beautiful-soup astroid Remove multiple packages from
conda search -f python any environment

conda create -n snakes python=3.4 Install different version of Python in new environment conda remove --name snakes --all Remove an environment

source activate snakes (Linux, Mac) Switch to the new environment that has a
activate snakes (Windows) different version of Python
TIP: Activate prepends the path to the snakes environment.
More resources
Free community support https://groups.google.com/a/continuum.io/forum/#!forum/anaconda
Managing .condarc configuration Full command documentation command followed by --help or -h

conda config --get Get all keys and values from my .condarc file
Online documentation http://conda.pydata.org/docs/
Paid support options http://continuum.io/support
conda config --get channels Get value of the key channels from .condarc file
Continuum onsite training courses https://store.continuum.io/cshop/training/
conda config --add channels pandas Add a new value to channels so conda looks for Continuum consulting services http://continuum.io/consulting/
packages in this location

You might also like