type
status
date
slug
summary
tags
category
icon
password
AI summary
之前用的 miniconda,近期看到了 mamba 这个项目,看了下官网,有个 micromamba 的基于 C++ 开发的,性能会更好一些。
micromamba
is a fully statically-linked, self-contained, executable. This means that thebase
environment is completely empty. The configuration formicromamba
is slightly different, namely all environments and cache will be created by default under theMAMBA_ROOT_PREFIX
environment variable. There is also no pre-configured.condarc
/.mambarc
shipped with micromamba (they are however still read if present). micromamba 的特点: 1. 使用多线程下载 repository data 和 packages(最新的 conda 也支持多线程了); 2. mamba 使用 libsolv 加速解决依赖关系; 3. mamba 的核心部分通过 C++ 实现,以获得最大执行效率; 4. mamba 可与 conda 完美兼容;
homebrew 方式安装
linux 安装
初始化配置
配置清华源
micromamba 可以识别 conda 的配置文件 micromamba 的配置优先级为 API >> CLI >> ENV >> RC 多个 RC 配置文件的读取顺序如下,越晚读到的配置优先级越高
使用 micromamba
操作命令示例
安装 pandas 测试

vscode集成配置
在安装的时候,如果没有修改默认的设置,则mamba的路径应该在
~/micromamba
打开VSCode的设置,添加下面的设置:
python.venvFolders
这一项,添加mamba的目录名,即micromamba

python.venvPath
这一项,添加mamba虚拟环境的目录,即~/micromamba/envs

Python:select interceptor
选择指定解释器
