跳到正文

Miniconda

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

Cask编程语言与运行时自带更新 7,563
主页
安装命令
brew install --cask miniconda
近 30 天安装
2,061
App榜第 190
近一年安装
6.1万
365 天累计
最新版本
py314_26.9.4-1
下载大小
176MB
sh
更新节奏
每周
近 30 天 2 个版本

介绍

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 概览、系统要求、安装、官方安装程序归档、Miniconda EULA、Anaconda 条款、Conda 文档。

基本信息

芯片
Apple 芯片
自动更新
是
仓库
开源 · BSD-3-Clause · 1 天前更新★7,563
开发者
Anaconda, Inc.
Homebrew
可以安装,应用会自行更新
其他名称
miniconda
主页
www.anaconda.com/docs/getting-started/miniconda/main
软件包标识符
miniconda

核查日期

26.10.0 更新内容

新版本 · 来自 GitHub Release

✨ 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! 🥳 🚀

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 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 or a deliberate change.
  • If that's not the case, please submit a bug report or feature request in the conda-rattler-solver repository.
  • 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, including the known limitations and differences, and in the conda solvers guide.

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 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 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. 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

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

如何在 Mac 上安装 Miniconda

不用 Homebrew 安装

直接下载 Homebrew 使用的同一个文件: 安装细节

卸载 Miniconda 与可选的数据清理

卸载命令
brew uninstall --cask miniconda

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

深度清理(可选)
卸载命令
brew uninstall --zap --cask miniconda

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

关于 Miniconda 的常见问题

Miniconda 安全吗?

Miniconda 收录在 Homebrew 官方软件库中,没有被停用。自 2026 年 9 月起,Homebrew 会停用没有通过 macOS Gatekeeper 检查的应用。安装时,Homebrew 会用 SHA-256 校验值核对来自 repo.anaconda.com 的安装包。过去 30 天,它通过 Homebrew 安装了 2,061 次。

Miniconda 是开源软件吗?

Miniconda 的源代码公开在 GitHub 上(conda/conda),使用 BSD-3-Clause 许可证。

怎样在 Mac 上彻底卸载 Miniconda?

运行 brew uninstall --cask miniconda。要连设置和缓存一起删除,运行 brew uninstall --zap --cask miniconda。--zap 还会删除 Homebrew 定义里列出的设置、缓存等文件,其中可能有其他应用共用的数据,删除后无法恢复;它也不保证没有任何残留。请先备份需要保留的数据;如要保留设置和缓存,请不要加 --zap。这会再删除 4 处文件和文件夹,包括 ~/.conda。

Miniconda 的设置和数据保存在哪里?

数据保存在 ~/.conda、~/.condarc和~/.continuum。这些位置来自 Homebrew 的清理清单。

Miniconda 的最新版本是多少?

最新版本是 py314_26.9.4-1,Homebrew 收录于 2026年11月10日。Miniconda 会自动更新;想用 Homebrew 更新时,运行 brew upgrade --cask --greedy miniconda。

安装 Miniconda 还会装上什么?

还会装上 1 个命令行工具:conda。它不能和 miniforge 同时安装。

相似应用

  • Eclipse Temurin 8Eclipse Adoptium 的 OpenJDK Java 8 JDK,含 HotSpot 和开发工具;此 Mac 软件包适用于 Intel x64,Apple Silicon 上需使用 Rosetta。
  • Miniforge面向 conda-forge 预配置的精简 Conda 和 Mamba 安装程序,提供隔离的软件包环境及多平台原生安装程序。
  • Eclipse Temurin 11免费的 OpenJDK 11 HotSpot 开发工具包,用于运行 Java 11 应用并构建兼容的 Java 项目。
  • Azul Zulu Java8 SE JDK 8Azul 提供的免费 OpenJDK8 开发套件,适用于需要 Java8 的应用和开发工具,提供适配不同架构的 Mac 安装器。
查看更多