← 返回命令列表

Linux command

micromamba 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Create environment

micromamba create -n [myenv] python=[3.11]

Activate environment

micromamba activate [myenv]

Install packages

micromamba install -n [myenv] [numpy] [pandas]

Install from conda-forge

micromamba install -c conda-forge [package]

List environments

micromamba env list

List packages in environment

micromamba list -n [myenv]

Remove environment

micromamba env remove -n [myenv]

Update all packages

micromamba update --all

说明

micromamba is a tiny, statically linked reimplementation of the conda package manager. It provides the same functionality as mamba/conda but as a single, fast, standalone binary. Unlike conda/mamba, micromamba requires no base environment or Python installation. It's a pure C++ implementation that can bootstrap an entire conda environment from scratch. Package resolution uses the same libsolv library as mamba, providing fast dependency solving. Channels like conda-forge provide access to thousands of packages. Environment management mirrors conda: create isolated environments, install packages, and switch between them. Environment files (YAML) enable reproducible environment creation. The tool is particularly useful for CI/CD pipelines and containers where a minimal footprint is desired. No initialization or base install needed - just download and run. Shell integration works with bash, zsh, fish, and PowerShell. The activate command modifies PATH and environment variables appropriately.

参数

create
Create new environment.
activate _ENV_
Activate environment.
deactivate
Deactivate current environment.
install _PACKAGES_
Install packages.
remove _PACKAGES_
Remove packages.
update _PACKAGES_
Update packages.
list
List installed packages.
env list
List environments.
env remove
Remove environment.
search _PACKAGE_
Search for packages.
clean
Clean package cache.
-n _NAME_, --name _NAME_
Environment name.
-c _CHANNEL_, --channel _CHANNEL_
Package channel.
-f _FILE_, --file _FILE_
Environment file.
-y, --yes
Don't ask for confirmation.
--no-deps
Don't install dependencies.
-q, --quiet
Quiet output.

FAQ

What is the micromamba command used for?

micromamba is a tiny, statically linked reimplementation of the conda package manager. It provides the same functionality as mamba/conda but as a single, fast, standalone binary. Unlike conda/mamba, micromamba requires no base environment or Python installation. It's a pure C++ implementation that can bootstrap an entire conda environment from scratch. Package resolution uses the same libsolv library as mamba, providing fast dependency solving. Channels like conda-forge provide access to thousands of packages. Environment management mirrors conda: create isolated environments, install packages, and switch between them. Environment files (YAML) enable reproducible environment creation. The tool is particularly useful for CI/CD pipelines and containers where a minimal footprint is desired. No initialization or base install needed - just download and run. Shell integration works with bash, zsh, fish, and PowerShell. The activate command modifies PATH and environment variables appropriately.

How do I run a basic micromamba example?

Run `micromamba create -n [myenv] python=[3.11]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does create do in micromamba?

Create new environment.