Micromamba
Micromamba is a statically linked C++ executable that provides the full power of the Conda ecosystem without needing a pre-installed Python "base" environment. Unlike pip, uv and other package managers, Conda can manage libraries written in C, C++, or R, which is vital for machine learning and AI work.
INFO
When to use: Micromamba is preferred for projects requiring polyglot or non-Python dependencies; for repositories strictly focused on the Python ecosystem, uv remains the optimized choice.
Installation
yay micromamba-binInitialize and Verify
micromamba shell init -s bashINFO
If the command above fails, run this before repeating the same step again: export MAMBA_ROOT_PREFIX=~/micromamba
source ~/.bashrc
micromamba --versionCore Workflow
WARNING
Don't "brainlessly" run the following commands, since you need to replace the <> values.
Environment Management
micromamba create --name <env_name> python=<python_version>: Create an environmentmicromamba activate <env_name>: Activate an environmentmicromamba deactivate: Deactivate the current environmentmicromamba env list: List all environmentsmicromamba env remove --name <env_name>: Remove an environmentmicromamba env export > <filename>.yml: Environment export to a.ymlfilemicromamba env create -f <filename>.yml: Build an environment from a.ymlfile
Package Management
micromamba install <package_name>: Install a packagemicromamba install <package_name=version_number>: Install a specific package versionmicromamba list: List installed packagesmicromamba update <package_name>: Update a packagemicromamba search <package_name>: Search for a packagemicromamba clean --all: Clean up cache to save space
TIP
Micromamba also allows you to run a command inside an environment without activating it first:
micromamba run -n <env_name> python <script_name>.py