迷你康达#
Miniconda 是 conda 的免费最小安装程序。它是 Anaconda 的一个小型引导版本,仅包含 conda、Python、它们所依赖的包以及少量其他有用的包(例如 pip、zlib 等)。
如果您需要更多软件包,请使用conda install
命令从 Anaconda 公共存储库或其他渠道(例如 conda-forge 或 bioconda)默认提供的数千个软件包中进行安装。
Miniconda 对我来说是免费的吗?
Miniconda 任何人都可以免费使用!但是,只有个人和小型组织(<200 员工)可以免费访问 Anaconda 的公共软件包存储库。大型组织和任何嵌入或镜像 Anaconda 存储库的人都需要付费许可证。有关详细信息,请参阅服务条款。
我应该使用 Miniconda 还是 Anaconda?
Anaconda 或 Miniconda页面列出了您可能希望安装其中一种而不是另一种的一些原因。
最新的 Miniconda 安装程序链接#
此安装程序列表适用于最新版本的 Python:3.12.4。对于旧版本 Python 的安装程序,请参阅其他安装程序链接。有关 Miniconda 版本的存档,请参阅https://repo.anaconda.com/miniconda/ 。
Platform |
Name |
SHA256 hash |
---|---|---|
Windows |
|
|
macOS |
|
|
|
||
|
||
|
||
Linux |
|
|
|
||
|
Quick command line install#
These quick command line instructions will get you set up quickly with the latest Miniconda installer. For graphical installer (.exe and .pkg) and hash checking instructions, see Installing Miniconda.
Note
For best results, copy all of the commands in each code block and run them all at once.
These three commands quickly and quietly download the latest 64-bit Windows installer, rename it to a shorter file name, silently install, and then delete the installer:
curl https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe -o miniconda.exe
start /wait "" .\miniconda.exe /S
del miniconda.exe
To install a different version
You can find different versions of the Windows installer at https://repo.anaconda.com/miniconda/.
For example, to install an older version of Miniconda for Python 3.12 for a 64-bit Windows computer, use the following curl
command instead:
curl https://repo.anaconda.com/miniconda/Miniconda3-py312_24.5.0-0-Windows-x86_64.exe -o miniconda.exe
After installing, open the “Anaconda Prompt (miniconda3)” program to use Miniconda3.
These three commands quickly and quietly download the latest 64-bit Windows installer, rename it to a shorter file name, silently install, and then delete the installer:
curl https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe -o miniconda.exe
Start-Process -FilePath ".\miniconda.exe" -ArgumentList "/S" -Wait
del miniconda.exe
To install a different version
You can find different versions of the Windows installer at https://repo.anaconda.com/miniconda/.
For example, to install an older version of Miniconda for Python 3.12 for a 64-bit Windows computer, use the following curl
command instead:
curl https://repo.anaconda.com/miniconda/Miniconda3-py312_24.5.0-0-Windows-x86_64.exe -o miniconda.exe
After installing, open the “Anaconda Powershell Prompt (miniconda3)”.
These four commands download the latest M1 version of the MacOS installer, rename it to a shorter file name, silently install, and then delete the installer:
mkdir -p ~/miniconda3
curl https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh -o ~/miniconda3/miniconda.sh
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
rm ~/miniconda3/miniconda.sh
To install a different version
You can find different versions of the MacOS installer at https://repo.anaconda.com/miniconda/.
For example, to install an older version of Miniconda for Python 3.12 for an M1 MacOS computer, use the following curl
command instead:
curl https://repo.anaconda.com/miniconda/Miniconda3-py312_24.5.0-0-MacOSX-arm64.sh -o ~/miniconda/miniconda.sh
Or to install an older version of Miniconda for Python 3.9 for an Intel chip MacOS computer, use the following curl
command instead:
curl https://repo.anaconda.com/miniconda/Miniconda3-py39_24.5.0-0-MacOSX-x86_64.sh -o ~/miniconda/miniconda.sh
After installing, initialize your newly-installed Miniconda. The following commands initialize for bash and zsh shells:
~/miniconda3/bin/conda init bash
~/miniconda3/bin/conda init zsh
These four commands download the latest 64-bit version of the Linux installer, rename it to a shorter file name, silently install, and then delete the installer:
mkdir -p ~/miniconda3
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
rm ~/miniconda3/miniconda.sh
To install a different version
You can find different versions of the MacOS installer at https://repo.anaconda.com/miniconda/.
For example, to install an older version of Miniconda for Python 3.12 for an 64-bit version of Linux, use the following wget
command instead:
wget https://repo.anaconda.com/miniconda/Miniconda3-py312_24.5.0-0-Linux-x86_64.sh -O ~/miniconda/miniconda.sh
After installing, initialize your newly-installed Miniconda. The following commands initialize for bash and zsh shells:
~/miniconda3/bin/conda init bash
~/miniconda3/bin/conda init zsh