conda
TLDR
Create environment
SYNOPSIS
conda command [options]
DESCRIPTION
conda is a package and environment manager for Python and other languages. It handles dependencies, creates isolated environments, and works across platforms, making it popular for data science and scientific computing.
The tool is part of the Anaconda and Miniconda distributions.
PARAMETERS
create -n name
Create new environmentinstall package
Install packageupdate package
Update packageremove package
Remove packagelist
List installed packagessearch package
Search for packageenv list
List environmentsactivate name
Activate environmentdeactivate
Deactivate environment
ENVIRONMENT MANAGEMENT
conda create -n myenv python=3.11
# Create with packages
conda create -n dataenv python=3.11 numpy pandas matplotlib
# Create from file
conda env create -f environment.yml
# Clone environment
conda create --clone myenv -n myenv_copy
# Remove environment
conda env remove -n myenv
# List all environments
conda env list
PACKAGE MANAGEMENT
conda install numpy
# Install specific version
conda install numpy=1.24.0
# Install from channel
conda install -c conda-forge package
# Update package
conda update numpy
# Update all packages
conda update --all
# Remove package
conda remove numpy
ENVIRONMENT.YML
channels:
- conda-forge
- defaults
dependencies:
- python=3.11
- numpy
- pandas
- pip:
- some-pip-package
FEATURES
- Cross-platform
- Multiple language support
- Binary package distribution
- Dependency resolution
- Environment isolation
- Channel system
- Integration with pip
CAVEATS
Large disk space usage. Environment activation requires shell integration. Channel priority can cause confusion. Some packages only on conda-forge. Slower than pip for pure Python packages. Mixing conda and pip can cause issues.
HISTORY
Conda was created by Travis Oliphant and Peter Wang at Continuum Analytics (now Anaconda, Inc.) around 2012 for the Anaconda distribution.
SEE ALSO
pip(1), virtualenv(1), mamba(1)


