Conda: A Cross-Platform Binary Package and Environment Manager
This repository profile is provided by osrepos.com, an open source repository discovery platform.

Summary
Conda is a powerful, cross-platform, language-agnostic binary package and environment manager. It simplifies the creation of isolated environments for various projects, even for C libraries, and efficiently installs packages using hard links. Written entirely in Python and BSD licensed, Conda is a cornerstone for distributions like Anaconda and Miniforge.
Repository Information
Topics
Click on any tag to explore related repositories
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Introduction
Conda is a robust, cross-platform, and language-agnostic binary package manager. It is designed to manage packages and environments across all major operating systems and platforms, making it a fundamental tool for developers and data scientists alike. Conda excels at creating isolated environments, even for C libraries, ensuring project dependencies do not conflict. The command-line interface is built entirely in Python and is released under a BSD license, fostering an open-source community. Conda is a core component of distributions like Miniforge and the Anaconda Distribution, and is actively supported by a vibrant conda community.
Installation
To get started with Conda, you can choose from a few straightforward installation methods.
Minimal Distribution: For a lightweight setup, use a minimal installer such as Miniconda or Miniforge. These provide a basic Conda installation.
Full Distribution: Conda is also included as part of the comprehensive Anaconda Distribution, which comes with hundreds of pre-installed packages.
Updating Conda: To ensure you have the latest version of Conda, run the following command:
$ conda update --name base conda
Note: If your current Conda version is significantly outdated, you might need to update in stages. For example, to update from conda 4.12 to conda 23.10.0, you would first install an intermediate version like conda 22.11.1 and then update again:
$ conda install --name base conda=22.11.1
$ conda update conda
Examples
Conda's strength lies in its intuitive command-line interface for managing packages and environments.
Listing Installed Packages: To see what packages are currently installed in your active environment:
$ conda list
Searching for Packages: Discover available packages across your configured channels:
$ conda search
Installing a Package: Easily add new packages to your environment:
$ conda install <package-name>
Environment Management: The true power of Conda is its ability to manage isolated environments. Environments are space-efficient, using hard links by default, and quick to create.
Creating a New Environment: For instance, to create an environment named ml-project with PyTorch:
$ conda create --name ml-project pytorch
This creates an environment called ml-project with the latest version of PyTorch and its dependencies.
Activating an Environment: Switch to your newly created environment:
$ conda activate ml-project
This command updates your PATH and sets the ml-project environment as default for subsequent Conda commands.
Deactivating an Environment: To return to the base environment:
$ conda deactivate
Why Use Conda
Conda offers significant advantages for managing software dependencies and development workflows.
Robust Environment Management: Create isolated environments for different projects, preventing conflicts between package versions and dependencies. This is crucial for reproducible research and development.
Cross-Platform Compatibility: Works seamlessly across Windows, macOS, and Linux, providing a consistent experience regardless of your operating system.
Language-Agnostic: While popular in Python, Conda can manage packages for any language, including R, Java, C/C++, and more.
Efficient Package Handling: Utilizes hard links for package installations, making environments space-efficient and fast to create.
Vibrant Community and Ecosystem: Supported by a large and active community, with extensive documentation and numerous community-driven channels like conda-forge and Bioconda.
Easy Package Building: Provides tools to build and share your own packages on platforms like anaconda.org.
Links
For more detailed information and community support, refer to the official resources:
Source repository
Open the original repository on GitHub.
6 counted GitHub visits