HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

micromamba — A fast, minimal, standalone package and environment manager for `conda` packages. Drop-in replacemen

Submitted by: @import:tldr-pages··
0
Viewed 0 times
micromambacommandminimalandclifastpackagestandalone

Problem

How to use the micromamba command: A fast, minimal, standalone package and environment manager for conda packages. Drop-in replacement for conda, ideal for CI, Docker, and lightweight setups. More information: <https://manned.org/micromamba>.

Solution

micromamba — A fast, minimal, standalone package and environment manager for conda packages. Drop-in replacement for conda, ideal for CI, Docker, and lightweight setups. More information: <https://manned.org/micromamba>.

Create a new environment at a specific path, installing named packages into it:
micromamba create {{[-p|--prefix]}} /{{path/to/env}} {{python=3.11 numpy}}


Activate an environment by name or path:
micromamba activate {{[-p|--prefix]}} /{{path/to/env}}


Run a command inside an environment without activating it in the shell:
micromamba run {{[-p|--prefix]}} /{{path/to/env}} {{pytest tests/}}


Install packages into the currently active environment:
micromamba install {{scipy pandas}}


List all installed packages in the current environment:
micromamba list


Search for packages in channels or current environment:
micromamba search {{package_name}}


Query tree-like dependencies of a package:
micromamba repoquery depends {{[-t|--tree]}} {{package_name}}


Show information about the current micromamba setup:
micromamba info

Code Snippets

Create a new environment at a specific path, installing named packages into it

micromamba create {{[-p|--prefix]}} /{{path/to/env}} {{python=3.11 numpy}}

Activate an environment by name or path

micromamba activate {{[-p|--prefix]}} /{{path/to/env}}

Run a command inside an environment without activating it in the shell

micromamba run {{[-p|--prefix]}} /{{path/to/env}} {{pytest tests/}}

Install packages into the currently active environment

micromamba install {{scipy pandas}}

List all installed packages in the current environment

micromamba list

Context

tldr-pages: common/micromamba

Revisions (0)

No revisions yet.