Cheatsheet#
The conda cheatsheet contains the most important information about using conda, such as basic commands for creating and managing environments, installing packages, and importing and exporting environments.
See the conda cheatsheet
PDF (3 MB) for a downloadable, single-page version.
Versions
conda 24.4.0
(latest)
Quickstart#
Tip
It is recommended to create a new environment for any new project or workflow.
verify conda install and check version |
|
update conda in base environment |
|
install latest anaconda distribution (see release notes) |
|
create a new environment (tip: name environment descriptively) |
|
activate environment (do this before installing packages) |
|
Channels and Packages#
Tip
Package dependencies and platform specifics are automatically resolved when using conda.
list installed packages |
|
list installed packages with source info |
|
update all packages |
|
install a package from specific channel |
|
install specific version of package |
|
install package with AND logic |
|
install package with OR logic |
|
uninstall package |
|
view channel sources |
|
add channel |
|
set default channel for pkg fetching (targets first channel in channel sources) |
|
Working with Conda Environments#
Tip
List environments at the beginning of your session. Environments with an asterisk are active.
list all environments and locations |
|
list all packages + source channels |
|
install packages in environment |
|
remove package from environment |
|
update all packages in environment |
|
Environment Management#
Tip
Specifying the environment name confines conda commands to that environment.
create environment with Python version |
|
clone environment |
|
rename environment |
|
delete environment by name |
|
list revisions made to environment |
|
restore environment to a revision |
|
uninstall package from specific channel |
|
Exporting Environments#
Tip
Name your export file after your environment to preserve your environment name.
cross-platform compatible |
|
platform + package specific |
|
platform + package + channel specific |
|
Importing Environments#
Tip
When importing an environment, conda resolves platform and package specifics.
from a .yml file |
|
from a .txt file |
|
Additional Hints#
get help for any command |
|
get info for any package |
|
run commands w/o user prompt, e.g., installing multiple packages |
|
remove all unused files |
|
examine conda configuration |
|