SlideShare a Scribd company logo
Continued on back →
conda info
conda update -n base conda
conda update anaconda
Getting Started
Verify Conda is installed, check version number
Update Conda to the current version
Update all packages to the latest version of
Anaconda. Will install stable and compatible
versions, not necessarily the very latest.
conda create --name ENVNAME python=3.6
"PKG1>7.6" PKG2
conda activate ENVNAME
conda activate /path/to/environment-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
Make an exact copy of an environment
Export an environment to a YAML file that can be
read on Windows, macOS, and Linux
Create an environment from YAML file
Create an environment from the file named
environment.yml in the current directory
Export an environment with exact package
versions for one OS
Create an environment based on
exact package versions
conda create --clone ENVNAME --name NEWENV
conda env export --name ENVNAME > envname.yml
conda env create --file envname.yml
conda env create
conda list --explicit > pkgs.txt
conda create --name NEWENV --file pkgs.txt
Sharing Environments
Working with Environments
Create a new environment named ENVNAME with
specific version of Python and packages installed.
Activate a named Conda environment
Activate a Conda environment at a particular location on disk
Deactivate current environment
List all packages and versions in the active environment
List all packages and versions in a named environment
List all revisions made within the active environment
List all revisions made in a specified environment
Restore an environment to a previous revision
Delete an entire environment
TIP: Anaconda Navigator is a desktop graphical user interface to manage packages and environments with
Conda. With Navigator you do not need to use a terminal to run Conda commands, Jupyter Notebooks,
JupyterLab, Spyder, and other tools. Navigator is installed with Anaconda, and may be added with Miniconda.
Take a conda test drive at bit.ly/tryconda
Windows, macOS, Linux:
Same commands for all platforms.
For full documentation of any command,
add --help to the command.
EXAMPLE: conda create --help
CONDA 4.6 CHEAT SHEET
conda search PKGNAME --info
conda clean --all
conda uninstall PKGNAME --name ENVNAME
conda update --all --name ENVNAME
conda install --yes PKG1 PKG2
conda config --show
conda config --show-sources
Using Packages and Channels
Search for a package in currently configured channels
with version range >=3.1.0, <3.2"
Find a package on all channels using the Anaconda
Client
Install package from a specific channel
Install a package by exact version number (3.1.4)
Install one of the listed versions (OR)
Install following several constraints (AND)
Add a channel to your Conda configuration
Follow us on Twitter @anacondainc and join the #AnacondaCrew!
Connect with data scientists and developers and contribute to the open source movement at anaconda.com/community
About Anaconda
With over 11 million users, Anaconda is the world’s most popular Python data science platform and the foundation of
modern machine learning and AI. Anaconda Enterprise simplifies and automates collaboration and deployment of
machine learning and AI at speed and scale, unleashing the full potential of your organization.
Additional Useful Hints
Detailed information about package versions
Remove unused cached files including unused packages
Remove a package from an environment
Update all packages within an environment
Run most commands without requiring
a user prompt. Useful for scripts.
Examine Conda configuration and configuration services
More Resources
Free Community Support
Online Documentation
Paid Support Options
Anaconda On-Site Training Courses
Anaconda Consulting Services
http://bit.lyconda_list
https://conda.io
anaconda.com/support
anaconda.com/training
anaconda.com/consulting
anaconda search FUZZYNAME
conda install conda-forge::PKGNAME
conda install PKGNAME==3.1.4
conda install "PKGNAME[version='3.1.2|3.1.4']"
conda install "PKGNAME>2.5,<3.2"
conda config --add channels CHANNELNAME
conda search PKGNAME=3.1 "PKGNAME
[version='>=3.1.0,<3.2']"
anaconda.com · info@anaconda.com · 512-776-1066 · v1.2019

More Related Content

PDF
Demystifying the Nuts & Bolts of Kubernetes Architecture
PDF
Application Monitoring using Open Source: VictoriaMetrics - ClickHouse
PPTX
Understanding kube proxy in ipvs mode
PPTX
Monitorización con Prometheus
PDF
TCP/IP Ağlarda İleri Seviye Paket Analizi – Tshark
PPTX
PPT
Port Scanning
PDF
Network Mapper (NMAP)
Demystifying the Nuts & Bolts of Kubernetes Architecture
Application Monitoring using Open Source: VictoriaMetrics - ClickHouse
Understanding kube proxy in ipvs mode
Monitorización con Prometheus
TCP/IP Ağlarda İleri Seviye Paket Analizi – Tshark
Port Scanning
Network Mapper (NMAP)

Similar to Conda cheatsheet (20)

PDF
conda-cheatsheetaaaaaaaaaaaaaaaaaaaa.pdf
PDF
Conda: A Cross-Platform Package Manager for Any Binary Distribution (SciPy 2014)
PDF
Effectively using Open Source with conda
PDF
The Conda environment system and how to use it on CSUC machines
PDF
Conda environment system & how to use it on CSUC machines
PDF
Conda environment system how to use it on CSUC machines
PDF
Conda environment system how to use it on CSUC machines
PDF
Conda environment system how to use it on CSUC machines
PDF
Installing Anaconda Distribution of Python
PPTX
Conda environment system & how to use it on CSUC machines
PPTX
25532813.pptx
PPTX
anaconda.pptx
PDF
Elevate Your Enterprise Python and R AI, ML Software Strategy with Anaconda T...
PPTX
2022.03.23 Conda and Conda environments.pptx
PPTX
Top 10 Anaconda Interview Questions and Answers.pptx
PDF
Introduction to the Python conda package manager
PPTX
Bioconda and the Conda Package Manager
PPTX
Pipenv - The Python Companion You Wish You Always Had
PDF
Python setup for dummies
PDF
Conda and Bioconda
conda-cheatsheetaaaaaaaaaaaaaaaaaaaa.pdf
Conda: A Cross-Platform Package Manager for Any Binary Distribution (SciPy 2014)
Effectively using Open Source with conda
The Conda environment system and how to use it on CSUC machines
Conda environment system & how to use it on CSUC machines
Conda environment system how to use it on CSUC machines
Conda environment system how to use it on CSUC machines
Conda environment system how to use it on CSUC machines
Installing Anaconda Distribution of Python
Conda environment system & how to use it on CSUC machines
25532813.pptx
anaconda.pptx
Elevate Your Enterprise Python and R AI, ML Software Strategy with Anaconda T...
2022.03.23 Conda and Conda environments.pptx
Top 10 Anaconda Interview Questions and Answers.pptx
Introduction to the Python conda package manager
Bioconda and the Conda Package Manager
Pipenv - The Python Companion You Wish You Always Had
Python setup for dummies
Conda and Bioconda
Ad

Recently uploaded (20)

PPTX
TOTAL hIP ARTHROPLASTY Presentation.pptx
PPTX
Derivatives of integument scales, beaks, horns,.pptx
PPT
The World of Physical Science, • Labs: Safety Simulation, Measurement Practice
PPTX
famous lake in india and its disturibution and importance
PDF
Unveiling a 36 billion solar mass black hole at the centre of the Cosmic Hors...
PDF
Formation of Supersonic Turbulence in the Primordial Star-forming Cloud
PPTX
cpcsea ppt.pptxssssssssssssssjjdjdndndddd
PDF
. Radiology Case Scenariosssssssssssssss
DOCX
Viruses (History, structure and composition, classification, Bacteriophage Re...
PDF
bbec55_b34400a7914c42429908233dbd381773.pdf
PDF
ELS_Q1_Module-11_Formation-of-Rock-Layers_v2.pdf
PPTX
Cell Membrane: Structure, Composition & Functions
PDF
Mastering Bioreactors and Media Sterilization: A Complete Guide to Sterile Fe...
PDF
VARICELLA VACCINATION: A POTENTIAL STRATEGY FOR PREVENTING MULTIPLE SCLEROSIS
PPTX
Comparative Structure of Integument in Vertebrates.pptx
PPTX
G5Q1W8 PPT SCIENCE.pptx 2025-2026 GRADE 5
PPTX
ANEMIA WITH LEUKOPENIA MDS 07_25.pptx htggtftgt fredrctvg
PPTX
Introduction to Cardiovascular system_structure and functions-1
PPTX
DRUG THERAPY FOR SHOCK gjjjgfhhhhh.pptx.
PDF
Sciences of Europe No 170 (2025)
TOTAL hIP ARTHROPLASTY Presentation.pptx
Derivatives of integument scales, beaks, horns,.pptx
The World of Physical Science, • Labs: Safety Simulation, Measurement Practice
famous lake in india and its disturibution and importance
Unveiling a 36 billion solar mass black hole at the centre of the Cosmic Hors...
Formation of Supersonic Turbulence in the Primordial Star-forming Cloud
cpcsea ppt.pptxssssssssssssssjjdjdndndddd
. Radiology Case Scenariosssssssssssssss
Viruses (History, structure and composition, classification, Bacteriophage Re...
bbec55_b34400a7914c42429908233dbd381773.pdf
ELS_Q1_Module-11_Formation-of-Rock-Layers_v2.pdf
Cell Membrane: Structure, Composition & Functions
Mastering Bioreactors and Media Sterilization: A Complete Guide to Sterile Fe...
VARICELLA VACCINATION: A POTENTIAL STRATEGY FOR PREVENTING MULTIPLE SCLEROSIS
Comparative Structure of Integument in Vertebrates.pptx
G5Q1W8 PPT SCIENCE.pptx 2025-2026 GRADE 5
ANEMIA WITH LEUKOPENIA MDS 07_25.pptx htggtftgt fredrctvg
Introduction to Cardiovascular system_structure and functions-1
DRUG THERAPY FOR SHOCK gjjjgfhhhhh.pptx.
Sciences of Europe No 170 (2025)
Ad

Conda cheatsheet

  • 1. Continued on back → conda info conda update -n base conda conda update anaconda Getting Started Verify Conda is installed, check version number Update Conda to the current version Update all packages to the latest version of Anaconda. Will install stable and compatible versions, not necessarily the very latest. conda create --name ENVNAME python=3.6 "PKG1>7.6" PKG2 conda activate ENVNAME conda activate /path/to/environment-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 Make an exact copy of an environment Export an environment to a YAML file that can be read on Windows, macOS, and Linux Create an environment from YAML file Create an environment from the file named environment.yml in the current directory Export an environment with exact package versions for one OS Create an environment based on exact package versions conda create --clone ENVNAME --name NEWENV conda env export --name ENVNAME > envname.yml conda env create --file envname.yml conda env create conda list --explicit > pkgs.txt conda create --name NEWENV --file pkgs.txt Sharing Environments Working with Environments Create a new environment named ENVNAME with specific version of Python and packages installed. Activate a named Conda environment Activate a Conda environment at a particular location on disk Deactivate current environment List all packages and versions in the active environment List all packages and versions in a named environment List all revisions made within the active environment List all revisions made in a specified environment Restore an environment to a previous revision Delete an entire environment TIP: Anaconda Navigator is a desktop graphical user interface to manage packages and environments with Conda. With Navigator you do not need to use a terminal to run Conda commands, Jupyter Notebooks, JupyterLab, Spyder, and other tools. Navigator is installed with Anaconda, and may be added with Miniconda. Take a conda test drive at bit.ly/tryconda Windows, macOS, Linux: Same commands for all platforms. For full documentation of any command, add --help to the command. EXAMPLE: conda create --help CONDA 4.6 CHEAT SHEET
  • 2. conda search PKGNAME --info conda clean --all conda uninstall PKGNAME --name ENVNAME conda update --all --name ENVNAME conda install --yes PKG1 PKG2 conda config --show conda config --show-sources Using Packages and Channels Search for a package in currently configured channels with version range >=3.1.0, <3.2" Find a package on all channels using the Anaconda Client Install package from a specific channel Install a package by exact version number (3.1.4) Install one of the listed versions (OR) Install following several constraints (AND) Add a channel to your Conda configuration Follow us on Twitter @anacondainc and join the #AnacondaCrew! Connect with data scientists and developers and contribute to the open source movement at anaconda.com/community About Anaconda With over 11 million users, Anaconda is the world’s most popular Python data science platform and the foundation of modern machine learning and AI. Anaconda Enterprise simplifies and automates collaboration and deployment of machine learning and AI at speed and scale, unleashing the full potential of your organization. Additional Useful Hints Detailed information about package versions Remove unused cached files including unused packages Remove a package from an environment Update all packages within an environment Run most commands without requiring a user prompt. Useful for scripts. Examine Conda configuration and configuration services More Resources Free Community Support Online Documentation Paid Support Options Anaconda On-Site Training Courses Anaconda Consulting Services http://bit.lyconda_list https://conda.io anaconda.com/support anaconda.com/training anaconda.com/consulting anaconda search FUZZYNAME conda install conda-forge::PKGNAME conda install PKGNAME==3.1.4 conda install "PKGNAME[version='3.1.2|3.1.4']" conda install "PKGNAME>2.5,<3.2" conda config --add channels CHANNELNAME conda search PKGNAME=3.1 "PKGNAME [version='>=3.1.0,<3.2']" anaconda.com · info@anaconda.com · 512-776-1066 · v1.2019