# Miniconda

用于隔离项目环境和命令行软件包管理的精简 conda 与 Python 安装程序。

> 这是 OpenNavo 上 Miniconda 页面的 Markdown 版本，内容与网页相同： <https://opennavo.com/zh/apps/miniconda>

- **最新版本**: `py314_26.9.4-1`
- **开发者**: Anaconda, Inc.
- **主页**: <https://www.anaconda.com/docs/getting-started/miniconda/main>
- **分类**: [编程语言与运行时](https://opennavo.com/zh/categories/languages)
- **安装**: `brew install --cask miniconda`
- **近 30 天安装**: 2,061
- **Homebrew**: 可以安装，应用会自行更新
- **下载地址**: <https://repo.anaconda.com/miniconda/Miniconda3-py314_26.9.4-1-MacOSX-arm64.sh>
- **SHA-256**: `205be72fe8a81c95e92504fa22d7e19a3411ec09939196100457ba77e66cd761`
- **附带命令**: conda

SHA-256 只用来核对下载的文件是否完整，不代表安全认证。

## 注意事项

Please run the following to setup your shell: conda init "$(basename "${SHELL}")" Alternatively, manually add the following to your shell init: eval "$(conda "shell.$(basename "${SHELL}")" hook)"

## 安装与卸载内容

```json
[
  {
    "declaration": {
      "uninstall_preflight_steps": [
        {
          "steps": [
            {
              "guards": [
                {
                  "condition": "if_exists",
                  "id": "1",
                  "path": "{{caskroom_path}}/base/envs"
                }
              ],
              "overwrite": true,
              "source": {
                "base": "caskroom_path",
                "path": "base/envs"
              },
              "target": {
                "path": "{{temp}}/{{token}}-envs"
              },
              "type": "move"
            }
          ]
        }
      ]
    },
    "phase": "uninstall",
    "sources": [],
    "type": "uninstall_preflight_steps"
  },
  {
    "declaration": {
      "uninstall": [
        {
          "delete": "$HOMEBREW_PREFIX/Caskroom/miniconda/base"
        }
      ]
    },
    "phase": "uninstall",
    "sources": [],
    "type": "uninstall"
  },
  {
    "declaration": {
      "installer": [
        {
          "script": {
            "args": [
              "-b",
              "-p",
              "$HOMEBREW_PREFIX/Caskroom/miniconda/base"
            ],
            "executable": "Miniconda3-py314_26.9.4-1-MacOSX-arm64.sh"
          }
        }
      ]
    },
    "phase": "install",
    "sources": [],
    "type": "installer"
  },
  {
    "declaration": {
      "binary": [
        "$HOMEBREW_PREFIX/Caskroom/miniconda/base/condabin/conda"
      ],
      "target": "$HOMEBREW_PREFIX/bin/conda"
    },
    "phase": "install",
    "sources": [
      "$HOMEBREW_PREFIX/Caskroom/miniconda/base/condabin/conda"
    ],
    "target": "$HOMEBREW_PREFIX/bin/conda",
    "type": "binary"
  },
  {
    "declaration": {
      "postflight_steps": [
        {
          "steps": [
            {
              "guards": [
                {
                  "condition": "if_exists",
                  "id": "1",
                  "path": "{{temp}}/{{token}}-envs"
                }
              ],
              "paths": [
                {
                  "base": "caskroom_path",
                  "path": "base/envs"
                }
              ],
              "recursive": true,
              "type": "remove"
            },
            {
              "guards": [
                {
                  "condition": "if_exists",
                  "id": "1",
                  "path": "{{temp}}/{{token}}-envs"
                }
              ],
              "overwrite": true,
              "source": {
                "path": "{{temp}}/{{token}}-envs"
              },
              "target": {
                "base": "caskroom_path",
                "path": "base/envs"
              },
              "type": "move"
            }
          ]
        }
      ]
    },
    "phase": "install",
    "sources": [],
    "type": "postflight_steps"
  },
  {
    "declaration": {
      "zap": [
        {
          "trash": [
            "/private/tmp/miniconda-envs",
            "~/.conda",
            "~/.condarc",
            "~/.continuum"
          ]
        }
      ]
    },
    "phase": "cleanup",
    "sources": [],
    "type": "zap"
  }
]
```

## 介绍

Miniconda 是 Anaconda 为 conda、Python 及其运行所需依赖提供的最简安装程序。它为开发者、数据科学家和自动化用户提供命令行起点，适合只想安装各个项目所需软件包的用户。它不包含 Anaconda Navigator，也不包含 Anaconda Distribution 中预装的大量数据科学软件。

### 主要功能
- 创建彼此隔离、使用不同 Python 和软件包版本的环境。
- 通过 conda 解析依赖关系，安装、更新和移除软件包。
- 激活项目环境，无需替换 macOS 系统 Python。
- 选择软件包渠道，并依照其条款管理仓库访问权限。
- 导出并重建环境规格，用于开发和自动化。
- 使用精简的基础安装，然后按需添加科学、开发或其他软件包。

### 安装和首次使用
使用 `brew install --cask miniconda` 安装此 Mac cask。它会安装到 Homebrew 的 Caskroom 基础目录，并链接 conda 命令。按照 cask 的 shell 设置指南操作；对于 zsh，运行 `conda init zsh`，然后重新打开终端。使用 `conda list` 检查安装情况。例如，使用 `conda create -n myproject python=3.14` 创建单独的项目环境，用 `conda activate myproject` 激活该环境，并安装项目所需的软件包。这些是使用说明，并非此目录执行的操作。

官方 shell 安装程序或图形安装程序是 Homebrew 的替代方案，其默认安装位置不同。请勿将现有的 Anaconda、Miniforge 或 Miniconda 前缀与由 cask 管理的安装混淆。请阅读并接受适用的安装程序及仓库条款。项目环境应与 base 环境分开。下载软件包通常需要网络连接；可选的私有仓库需要各自的凭据。

### 要求、依赖项和冲突
当前官方 Miniconda 安装程序支持运行 macOS 12.1 或更高版本的 Apple 芯片 Mac。记录的 Apple 芯片 cask 版本 `py314_26.7.1-1` 选择包含 Python 3.14.7 和 conda 26.7.1 的 Python 3.14 安装程序。其 ARM64 shell 安装程序大小为 155,681,303 字节；这是下载大小，并非安装后的磁盘占用。

Anaconda 在 25.7.x 系列之后停止发布新的 Intel macOS 安装程序。因此，Homebrew 的 Intel 版本仍为 `py313_25.7.0-2`，而非当前的 Apple 芯片版本。请勿假定最新 ARM64 版本是原生支持 Intel 的下载包。较早的归档安装程序也有各自的兼容性限制。

Homebrew cask 明确与 `miniforge` 冲突，并且未声明其他 formula 依赖项。其原始 macOS 依赖项字段不能证明供应商当前的操作系统支持政策。官方系统要求列出的最低下载和安装空间为 400 MB；当前对比页面估算，已安装的 Miniconda base 约占 900 MB，环境和软件包还需要额外空间。尚未确定适用于所有情况的统一 RAM 要求。

官方非 Mac 安装程序支持 Windows 64 位 x86 和 Linux x86-64/aarch64。当前 Linux 安装程序要求 glibc 2.28 或更高版本；aarch64 构建面向服务器级硬件，可能不适用于所有 Raspberry Pi。Windows 和各发行版的支持情况请参阅当前系统要求页面。

### 账户、费用和许可
Miniconda 安装程序无需单独购买即可使用，但须遵守其 EULA 和软件包许可。Conda 本身是开源组件，但这并不意味着所有捆绑的软件包或仓库服务都适用相同许可。访问 Anaconda 的仓库或平台可能需要付费订阅。当前条款规定，代表员工或承包商超过 200 人（含关联方）的营利组织使用时，必须购买 Business Plan；符合适用例外并获准免费使用的情况除外。个人非商业用途、符合条件的学术或非营利用途，以及符合资格的小型企业，均有明确的免费使用规定。选择软件包渠道前，请查阅完整的当前条款并确认组织是否符合资格。

创建和使用本地 conda 环境本身不要求账户。Anaconda 的网页下载流程会要求注册；使用需要身份验证的平台功能或私有仓库时，则须提供相应凭据。安装程序 EULA 明确禁止绕过仓库付费要求。

图标是 Anaconda 的官方品牌标志。媒体示例来自官方 Miniconda Windows 安装文档：它展示的是在 Windows 11 上打开 Anaconda Prompt，并非 macOS 界面，也不是随 Mac cask 一同提供的图形界面。

来源：[Miniconda 概览](https://www.anaconda.com/docs/getting-started/concepts/anaconda-or-miniconda)、[系统要求](https://www.anaconda.com/docs/getting-started/miniconda/system-requirements)、[安装](https://www.anaconda.com/docs/getting-started/miniconda/install)、[官方安装程序归档](https://repo.anaconda.com/miniconda/)、[Miniconda EULA](https://www.anaconda.com/legal/terms/miniconda)、[Anaconda 条款](https://www.anaconda.com/legal/terms/terms-of-service)、[Conda 文档](https://docs.conda.io/projects/conda/en/stable/)。

## 系统要求

- 适用于 macOS 27, 26, 15, 14, 13, 12, 11 的版本 · 应用版本: py313_25.7.0-2 · Intel · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/m/miniconda.rb> · 核查于 2026-12-02
  - <https://repo.anaconda.com/miniconda/Miniconda3-py313_25.7.0-2-MacOSX-x86_64.sh>
  - SHA-256: `9c88674b1a839eeb4cff006df397a05ea7d896472318fd84b7070278f9653dc6`
- 适用于 macOS 27, 26, 15, 14, 13, 12, 11 的版本 · 应用版本: py314_26.9.4-1 · Apple 芯片 · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/m/miniconda.rb> · 核查于 2026-12-02
  - <https://repo.anaconda.com/miniconda/Miniconda3-py314_26.9.4-1-MacOSX-arm64.sh>
  - SHA-256: `205be72fe8a81c95e92504fa22d7e19a3411ec09939196100457ba77e66cd761`

## Miniconda 的安全事实

这里只列可以核验的事实，并注明来源和日期，不是安全认证。要检查你下载的文件，可以用 OpenNavo 在本机扫描。

- <https://github.com/conda/conda> · 是否开源: 是 — <https://github.com/conda/conda> · 核查于 2026-11-13

## 卸载

- `brew uninstall --cask miniconda`

普通卸载会删除应用本身，设置和缓存会保留。

### 卸载时还会处理

- 文件和文件夹: `$HOMEBREW_PREFIX/Caskroom/miniconda/base` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/m/miniconda.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-02；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。

### 深度清理（可选）

- `brew uninstall --zap --cask miniconda`

`--zap` 还会删除 Homebrew 定义里列出的设置、缓存等文件，其中可能有其他应用共用的数据，删除后无法恢复；它也不保证没有任何残留。请先备份需要保留的数据；如要保留设置和缓存，请不要加 `--zap`。

普通卸载会删除应用本身，设置和缓存会保留。

- 文件和文件夹: `/private/tmp/miniconda-envs` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/m/miniconda.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-02；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/.conda` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/m/miniconda.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-02；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/.condarc` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/m/miniconda.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-02；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/.continuum` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/m/miniconda.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-02；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。

## 最新版本说明

### 26.10.0 (2026-11-06)

##### ✨ Special announcement ✨

This is an announcement about an important change in conda's functionality:

###### **With this 26.10.0 release we are changing the default solver of conda to [`conda-rattler-solver`](https://github.com/conda/conda-rattler-solver)!** 🥳 🚀

The previous default, the `libmamba` solver, remains available as an alternative, as does the `pycosat` solver (also known as `classic`). The `classic` solver now ships as the separate [`conda-pycosat-solver`](https://github.com/conda/conda-pycosat-solver) plugin, which is bundled with conda. Existing `solver: classic` settings and `--solver=classic` commands keep working, and the plugin also accepts `--solver=pycosat`.

###### Why are we switching the solver?

In short: to make conda faster and more accurate.

Rattler is a set of Rust libraries for working with conda packages. The `conda-rattler-solver` plugin uses rattler's dependency solver and optimized sparse repodata parsing, which reduces overhead when resolving complex dependency trees. It solves environments faster than libmamba, with the largest improvements on large or heavily constrained environments.

Conda 26.10.0 switches to rattler for fresh installations and upgrades that do not have an explicit solver setting. If you have already selected a solver, conda keeps that choice.

###### What can I do if this update doesn't work for me?

If the new solver is not working as you expect:

- Check if the behavior you are observing is a [known limitation](https://conda.github.io/conda-rattler-solver/user-guide/known-limitations/) or a deliberate change.
- If that's not the case, please submit a bug report or feature request in the [conda-rattler-solver repository](https://github.com/conda/conda-rattler-solver/issues/new/choose).
- If necessary, you can go back to using the `libmamba` solver without modifying your conda installation:
  - When possible, pass the command line option `--solver=libmamba` to your `conda` calls.
  - Otherwise (e.g. for `conda build ...` or `constructor ...`), set the environment variable `CONDA_SOLVER=libmamba`.
  - For permanent changes, use the conda configuration system: `conda config --set solver libmamba`.
- The `pycosat` solver (also known as `classic`) remains available with `--solver=pycosat` or `--solver=classic`.

###### Where can I learn more about conda-rattler-solver?

The documentation of the `conda-rattler-solver` plugin can be found at [conda.github.io/conda-rattler-solver](https://conda.github.io/conda-rattler-solver/), including the [known limitations and differences](https://conda.github.io/conda-rattler-solver/user-guide/known-limitations/), and in the [conda solvers guide](https://docs.conda.io/projects/conda/en/latest/user-guide/concepts/solvers.html).

##### Enhancements

* IMPORTANT: Set `solver: rattler` as the new default solver, including after upgrades when no solver is explicitly configured. Require `conda-rattler-solver >=26.10.2`. (#16853 via #16944)
* Track the last time an environment was activated via user invocation. Activation modifies the mtime of `<prefix>/conda-meta/last_activated` (best-effort; failures are ignored). The timestamp is exposed as `last_activated` in JSON output. (#14308 via #16808)
* Add an `is_active` property to `PrefixData`. (#14308 via #16808)
* Add `--disable-plugins` to selectively disable plugins at runtime using comma-separated names or by repeating the option. Keep `--no-plugins` as a boolean flag to disable all external plugins. (#15914 via #15915)
* Add `--enable-plugins` to keep selected plugins enabled when using `--no-plugins` or `CONDA_NO_PLUGINS`, including solver plugins needed for recovery. (#15914 via #15915)
* Add a `root_extras` option to `conda._private.shards.subset.build_repodata_subset` (and the underlying `RepodataSubset.reachable*` methods) so callers can request that CEP 44 `extra_depends` groups be fetched only for specific root/user-requested packages, without recursing into extras of their dependencies. (#16724 via #16742)
* Add `LinkSourceNotFoundError` and `LinkScriptError` (a `LinkError` subclass) so callers can detect a missing package cache source and a failed pre-/post-link script with `isinstance` and inspect `src`, `action`, `prec`, and `path` instead of parsing error messages. Error text is unchanged, and `LinkScriptError` remains catchable as `LinkError`, but code that matched the missing-source case against a bare `CondaError` now needs `LinkSourceNotFoundError`. (#16785 via #16747)
* Follow CEP 44 extras explicitly requested by dependency specs (e.g. `pkg[extras=more]`) when fetching sharded repodata, and revisit a package when another dependency activates an additional extras group. Groups that were not requested stay inactive. Previously only extras requested for root packages via `root_extras` were followed. (#16891 via #16908)
* Parse `MatchSpec` strings with the v3 parser for all solvers, not just for `rattler`. This keeps complete `extras` and `flags` lists (e.g. `httpx2[extras=[cli,http2]]` or `httpx2[extras=cli,http2]`) and accepts nested `when` expressions. (#16724 via #16906)

##### Bug fixes

* Preserve platform-named parent directories when parsing channel and package URLs, fixing conda-build failures with paths such as `osx-arm64/conda-bld`. (conda/conda-libmamba-solver#1108 via #16926)
* Preserve nested shard URLs when adding stored Anaconda tokens. (#16946 via #16948)
* Avoid `FileNotFoundError` on Windows when `rmtree()` deletes a directory that `RD /S /Q` already removed (for example during `conda package` temp cleanup). (#16539 via #16803)
* Write configuration files atomically when directory permissions allow, preserve macOS ACLs, and reject writes if the file changed in the meantime. Keep writable files editable in read-only directories, with best-effort recovery after write failures. (#16694 via #16695)
* Ask once before `conda env remove` and `conda remove --all` delete an environment. Those commands previously confirmed the package unlink and then, after the packages were already uninstalled, asked again before deleting the rest of the prefix, including non-conda files. Declining that second prompt left a half-deleted environment. The package plan and the prefix-deletion warning are now shown together before anything is removed, and declining leaves the environment unchanged. (#16753 via #16852)
* Fix `conda config --get` writing to the config file when no key is given. (#16825 via #16831)
* Fix `iter_records_v3()` not converting raw-bytes hashes (`sha256`, `md5`, `legacy_bz2_md5`, `attestations_sha256`) to hex strings, as written by e.g. `rattler-index`. (#16866)
* Retry remote requests that fail with HTTP 502 (Bad Gateway) or 504 (Gateway Timeout), which are usually transient server or CDN errors. (#16848)
* Fix `ObjectParameter` configuration types not expanding environment variables when `expandvars=True`. (#16897)
* Fix `conda.deprecations.deprecated` and `conda.deprecations.deprecated.argument` to preserve generator functions when decorating, instead of wrapping them in a plain function and losing generator semantics (e.g. `pytest` yield-fixtures now warn and yield correctly when stacked under `@pytest.fixture`). (#16900)
* Use a fresh YAML parser for every read and write to prevent concurrent calls and failed operations from corrupting later results. (#16943 via #16949)
* Show environment names in PowerShell prompts for canary packages built with `changeps1: false`. (#16858)

##### Deprecations

* Mark `conda.plugins.solvers`, `conda.resolve`, `conda.common.logic`, and `conda.common._logic` as pending deprecation, to be removed in 27.9. Use [`conda-pycosat-solver`](https://github.com/conda/conda-pycosat-solver) instead. (#14170 via #16520)
* Mark `conda.models.prefix_graph.GeneralGraph` and its `breadth_first_search_by_name` method as pending deprecation, to be removed in 27.9. (#16802)
* Mark `conda.testing.cases` as pending deprecation, to be removed in 27.9. Use native `pytest` fixtures instead. (#16900)
* Mark `conda.testing.helpers.assert_equals`, `assert_in`, and `assert_not_in` as pending deprecation, to be removed in 27.9. Use a plain `assert` instead. (#16900)
* Mark `conda.testing.helpers.supplement_index_with_repodata` as pending deprecation, to be removed in 27.9. Use `conda.models.records.PackageRecord.from_objects` instead. (#16900)
* Mark `conda.testing.helpers.add_feature_records_legacy` as pending deprecation, to be removed in 27.9. (#16900)
* Mark `conda.testing.integration.Commands` as pending deprecation, to be removed in 27.9. Use the `conda_cli` fixture instead. (#16900)
* Mark `conda.testing.integration.escape_for_winpath` as pending deprecation, to be removed in 27.9. Use `re.escape` instead. (#16900)
* Mark the `conda.testing.integration` constants `UNICODE_CHARACTERS`, `UNICODE_CHARACTERS_RESTRICTED`, `SPACER_CHARACTER`, and `cp_or_copy` as pending deprecation, to be removed in 27.9. (#16900)
* Mark `conda.testing.solver_helpers.temp_simple_env` as pending deprecation, to be removed in 27.9. Use `conda.testing.solver_helpers.SimpleEnvironment` instead. (#16900)
* Mark `conda.models.match_spec._parse_spec_str` as pending deprecation, to be removed in 27.9. Use `conda.models.match_spec._parse_spec_str_v3` instead. (#16724 via #16906)
* Mark the unused `conda.core.subdir_data.SubdirData` pickle cache helpers and the `cache_path_pickle` property as pending deprecation, to be removed in 27.9. (#16928)

##### Docs

* Document the `last_activated` timestamp in the JSON output. (#14308 via #16808)
* Add a "Rendering output" deep dive documenting the reporter backend as the output system for the conda CLI, with logging and error handling guidelines. (#16700 via #16843)
* Document logging guidelines for library code in the logging deep dive. (#16701 via #16912)
* Add a guide to choosing a solver to the documentation, with information about the available solvers and how to change your solver. (#16844)

##### Other

* Move the classic solver out of conda core and into the standalone [`conda-pycosat-solver`](https://github.com/conda/conda-pycosat-solver) plugin, bundled with conda by default. Both `--solver=pycosat` and `--solver=classic` continue to work unchanged. (#14170 via #16520)
* Keep PowerShell CI installations separate from PowerShell's runtime cache. (#16762 via #16907)
* Add `tmp_repodata_channel` for constructing local test channels from in-memory package metadata. (#16807)
* Replace production-channel inputs in `test_neutering_of_historic_specs` with a small local channel while preserving historical-spec regression coverage. (#16767 via #16807)
* Speed up `test_cross_channel_incompatibility` by using two small local channels instead of remote conda-forge/defaults metadata, preserving optional-constraint regression coverage. (#16768 via #16796)
* Raise the minimum Python version required to run conda to 3.11, following [conda-build#6176](https://github.com/conda/conda-build/issues/6176). Conda can still create and manage environments containing Python 3.10 and older; this only affects the interpreter used to run conda itself. (#16795 via #16801)
* Do not allow local condarc files to populate the `context_testdata` fixture. (#16797 via #16809)
* Warn when a `conda doctor` reinstall attempt fails due to malformed `conda-meta` data. (#16636 via #16834)
* Convert raw-bytes hash digests to hex strings in memory when sharded repodata is decoded, rather than re-converting records on each read. (#16868)

##### Contributors

* @aditya0929 made their first contribution in <https://github.com/conda/conda/pull/16831>
* @conda-bot
* @danyeaw
* @dependabot[bot]
* @dholth
* @ForgottenProgramme
* @gavinw2143 made their first contribution in <https://github.com/conda/conda/pull/16796>
* @jezdez
* @kathatherine
* @kenodegard
* @larsoner made their first contribution in <https://github.com/conda/conda/pull/16848>
* @pre-commit-ci[bot]
* @r3wretrhy made their first contribution in <https://github.com/conda/conda/pull/16803>
* @ryanskeith
* @soapy1
* @travishathaway
* @VINAYRAO0406 made their first contribution in <https://github.com/conda/conda/pull/16814>

**Full Changelog**: https://github.com/conda/conda/compare/26.9.3...26.10.0

## 资料与来源

- <https://opennavo.com/zh/apps/miniconda>
- <https://opennavo.com/zh/apps/miniconda/versions>
- <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/m/miniconda.rb> · 核查于 2026-12-02
- <https://formulae.brew.sh/cask/miniconda>
- <https://github.com/conda/conda> · 核查于 2026-11-13
