cuML Setup

Instructions to setup Micromomba and Python PIP as package managers. This setup is mandatory to utilize cuML Processor → in Gathr.

Prerequisites

  • OS Type - Amazon Linux 2.x
  • Python 3.11.13 should be installed.
  • Python3 should point to python3.11.0
  • pip3 should point to python3.11.0
  • Micromomba should be installed and available on OS path.
/usr/bin/python3 should point to /usr/local/bin/python3.11

/bin/python3 should point to /usr/local/bin/python3.11

/usr/bin/pip3 should point to /usr/local/bin/pip3.11

Micromamba Installation Steps

Micromamba is a fully statically-linked, self-contained, executable package manager. This means that the base environment is completely empty. The configuration for micromamba environments and cache will be created by default under the MAMBA_ROOT_PREFIX environment variable. There is also no pre-configured .condarc/.mambarc shipped with micromamba

Step-by-Step Micromamba Installation on Amazon Linux 2

Download and Extract Micromamba Binary

Download and extract the latest version of Micromamba directly using the below command.

curl -Ls https://micro.mamba.pm/api/micromamba/linux-64/latest | tar -xvj bin/micromamba

This will extract the micromamba binary to a folder named bin/.

Move Micromamba to System Path

Move the binary to a location available in your system’s PATH.

sudo mv bin/micromamba /usr/local/bin/
sudo chmod +x /usr/local/bin/micromamba

Initialize Micromamba (for both users and root)

For non-root users

Add PATH variable if it is not available as mentioned below.

export PATH="/usr/local/bin:$PATH"
micromamba shell init --shell=bash
source ~/.bashrc

If getting error with command micromamba shell init –shell=bash, execute the below command.

/usr/local/bin/micromamba shell init --shell=bash

For root user (if needed)

Add PATH variable if not present

export PATH="/usr/local/bin:$PATH"

micromamba shell init --shell=bash

source ~/.bashrc

If getting error with command micromamba shell init –shell=bash, execute the below command.

/usr/local/bin/micromamba shell init --shell=bash

The init command will add Micromamba shell setup code to your ~/.bashrc.

Create and Activate a Python Virtual Environment

micromamba create -n myenv python=3.11 -y

micromamba activate myenv

Verify Installation

After restarting the shell or sourcing .bashrc, test if it’s working.

micromamba --version
micromamba env list

Top