maphew

Micromamba

October 16, 2023

Micromamba , a ightwieght and fast alternative to Miniconda

Micromamba

If using dev drive set that as root prefix location instead

@echo. Installing micromamba via CMD... 
@echo. 
::Requires: wge t, 7zip, gsudo 
sudo setx /M MAMBA_ROOT_PREFIX C:\apps\micromamba 
wget -O micromamba.tar.bz2 --no-clobber https://micro.mamba.pm/api/micromamba/win-64/latest 
7z x micromamba.tar.bz2 
7z x micromamba.tar 
@for %%a in (mm.exe miromamba.exe) do if exist c:\bin\%%a del c:\bin\%%a 
move Library\bin\micromamba.exe c:\bin\ 
sudo mklink /h c:\bin\mm.exe c:\bin\micromamba.exe 
rd /s/q info Library 
del micromamba.tar 

Install with Powershell#

Invoke-Webrequest -URI https://micro.mamba.pm/api/micromamba/win-64/latest -OutFile micromamba.tar.bz2 
tar xf micromamba.tar.bz2 

MOVE -Force Library\bin\micromamba.exe micromamba.exe 

.\micromamba.exe --help 

# You can use e.g. $HOME\micromambaenv as your base prefix 
$Env:MAMBA_ROOT_PREFIX="C:\apps\micromamba" 

# Invoke the hook 
.\micromamba.exe shell hook -s powershell | Out-String | Invoke-Expression 

# ... or initialize the shell 
.\micromamba.exe shell init -s powershell -p C:\apps\micromamba 

# and use micromamba directly 
micromamba create -f ./test/env_win.yaml -y 
micromamba activate yourenv 

From < https://mamba.readthedocs.io/en/latest/micromamba-installation.html#umamba-install