Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

conda

> 包管理
Open source

A system-level, binary package and environment manager running on all major operating systems and platforms.

7.5K stars0 likes6 views
WebsiteGitHub

About

A system-level, binary package and environment manager running on all major operating systems and platforms.


GitHub Scheduled Tests Codecov Status Bencher Performance Benchmarks CalVer Versioning GitHub Release Anaconda Package conda-forge Package

Conda is a cross-platform, language-agnostic binary package manager. It is a package manager used in conda distributions like Miniforge and the Anaconda Distribution, but it may be used for other systems as well. Conda makes environments first-class citizens, making it easy to create independent environments even for C libraries. The conda command line interface is written entirely in Python, and is BSD licensed open source.

Conda is enhanced by organizations, tools, and repositories created and managed by the amazing members of the conda community. Some of them can be found here.

Installation

To bootstrap a minimal distribution, use a minimal installer such as Miniconda or Miniforge.

Conda is also included in the Anaconda Distribution.

Updating conda

To update conda to the newest version, use the following command:

$ conda update --name base conda

[!TIP] It is possible that conda update does not install the newest version if the existing conda version is far behind the current release. In this case, updating needs to be done in stages.

For example, to update from conda 4.12 to conda 23.10.0, conda 22.11.1 needs to be installed first:

$ conda install --name base conda=22.11.1
$ conda update conda

Getting Started

If you install the Anaconda Distribution, you will already have hundreds of packages installed. You can see what packages are installed by running:

bash
$ conda list

to see all the packages that are available, use:

bash
$ conda search

and to install a package, use

bash
$ conda install <package-name>

The real power of conda comes from its ability to manage environments. In conda, an environment can be thought of as a completely separate installation. Conda installs packages into environments efficiently using hard links by default when it is possible, so environments are space efficient, and take seconds to create.

The default environment, which conda itself is installed into, is called base. To create another environment, use the conda create command. For instance, to create an environment with PyTorch, you would run:

bash
$ conda create --name ml-project pytorch

This creates an environment called ml-project with the latest version of PyTorch, and its dependencies.

We can now activate this environment:

bash
$ conda activate ml-project

This puts the bin directory of the ml-project environment in the front of the PATH, and sets it as the default environment for all subsequent conda commands.

To go back to the base environment, use:

bash
$ conda deactivate

Building Your Own Packages

You can easily build your own packages for conda, and upload them to anaconda.org, a free service for hosting packages for conda, as well as other package managers. To build a package, create a recipe. Package building documentation is available here. See AnacondaRecipes for the recipes that make up the Anaconda Distribution and defaults channel. Conda-forge and Bioconda are community-driven conda-based distributions.

To upload to anaconda.org, create an account. Then, install the anaconda-client and login:

bash
$ conda install anaconda-client
$ anaconda login

Then, after you build your recipe:

bash
$ conda build <recipe-dir>

you will be prompted to upload to anaconda.org.

To add your anaconda.org channel, or other's channels, to conda so that conda install will find and install their packages, run:

bash
$ conda config --add channels https://conda.anaconda.org/username

(replacing username with the username of the person whose channel you want to add).

Getting Help

  • Documentation
  • Zulip chat
  • Bluesky
  • Bug Reports/Feature Requests
  • Installer/Package Issues

Contributing

Contributions to conda are welcome. See the contributing documentation for instructions on setting up a development environment.

Issues· 649 open

View all issuesOpen on GitHub
  • #16795

    Drop Python 3.10 support

    type::taskUpdated Oct 1, 2026
  • #16620

    Release `26.9.0`

    Updated Oct 1, 2026
  • #16794

    Canary Builds failed `main`

    type::bugsource::auto¡blocking!type::testingUpdated Oct 1, 2026
  • #15278

    `.\dev\start.bat` development setup script broken on Windows

    type::bugsource::contributorstaleUpdated Oct 1, 2026
  • #16789

    Tests failed (2026-09-30)

    type::bugsource::auto¡blocking!type::testingUpdated Sep 30, 2026
  • #14308

    Provide information about time of environment creation, last update and last activation

    type::featuresource::anacondastalestale::recoveredUpdated Sep 30, 2026
  • #16786

    Docs: Add a "Choosing a solver" user-guide page

    source::contributordocumentation::explanationUpdated Sep 30, 2026
  • #16616

    Configure soft links and read-only behavior per package cache

    type::featureUpdated Sep 30, 2026
  • #16788

    RuntimeError: bad variant access (Failed to explain problems), on trying gdal in a python 3.15 env.

    type::bugsource::communityUpdated Sep 30, 2026
  • #16570

    Docs: Dev guide for how breaking CLI changes to conda are made

    source::contributordocumentation::referenceUpdated Sep 30, 2026

> Tags

Pythoncondapackage-managementpython

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 2, 2026
Category包管理
PricingOpen source

> Related tools

N
npm
Node.js 默认包管理器
P
pnpm
高效节省磁盘的 Node 包管理器
I
is-gif
Check if a Buffer/Uint8Array is a GIF image