← 返回命令列表

Linux command

mamba 命令

文本

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

常用示例

Create environment

mamba create -n [myenv] [python=3.10]

Install package

mamba install [numpy]

Update package

mamba update [package]

Remove package

mamba remove [package]

Search for a package

mamba search [numpy]

List environments

mamba env list

Activate environment

mamba activate [myenv]

Clean package caches

mamba clean --all

说明

mamba is a fast, drop-in replacement for conda. It provides faster package resolution using the libsolv dependency solver (written in C++) and parallel downloading of packages. The tool is fully compatible with conda commands, packages, and environments. It can be used wherever conda is used and supports the same command-line interface.

参数

create
Create new environment.
install
Install packages.
update
Update packages.
remove
Remove packages.
search
Search for packages in configured channels.
list
List packages in active environment.
clean
Remove cached package files and unused caches.
env
Environment management.
repoquery
Query package dependencies and reverse dependencies.
-n _NAME_
Environment name.
-c _CHANNEL_
Additional channel to search for packages.
-y, --yes
Do not ask for confirmation.
--dry-run
Only display what would have been done.
--no-banner
Suppress the mamba banner.
--help
Display help information.

FAQ

What is the mamba command used for?

mamba is a fast, drop-in replacement for conda. It provides faster package resolution using the libsolv dependency solver (written in C++) and parallel downloading of packages. The tool is fully compatible with conda commands, packages, and environments. It can be used wherever conda is used and supports the same command-line interface.

How do I run a basic mamba example?

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

What does create do in mamba?

Create new environment.