Installation Guide
This guide covers the setup of the necessary environment and installation of the library.
Prerequisites
Section titled “Prerequisites”- Python 3.10–3.12 (3.13 not yet supported)
pipandvenv(usually included with Python)- Optional (for graph rendering): Graphviz system package
- Ubuntu/Debian:
sudo apt-get install graphviz - macOS:
brew install graphviz - Windows: use Conda (see Option A)
- Ubuntu/Debian:
Installation Options
Section titled “Installation Options”- Clone the Repository (If necessary):
If you haven’t already, clone the repository to your local machine:
Terminal window git clone https://github.com/tandpds/ammm.gitcd ammm # Or your repository directory name
Option A: Conda (Recommended for Windows)
Section titled “Option A: Conda (Recommended for Windows)”conda create -n ammm python=3.11 pip -yconda activate ammmconda install -c conda-forge prophet m2w64-toolchain -ypip install -e .# Optional extraspip install -e .[dev]pip install -e .[docs]Option B: venv (Linux/macOS and alternatives)
Section titled “Option B: venv (Linux/macOS and alternatives)”-
Create and Activate a Virtual Environment:
Terminal window python -m venv venv_ammm# Linux/macOSsource venv_ammm/bin/activate# Windows (Command Prompt/PowerShell)venv_ammm\Scripts\activateYour terminal prompt should now indicate that you are in the
(venv_ammm)environment. -
Upgrade Build Tools (Recommended):
Terminal window python -m pip install --upgrade pip setuptools wheel -
Install Dependencies:
Terminal window pip install -e .The
-eflag installs the package in “editable” mode, meaning changes you make to the source code are immediately reflected when you run the library. -
Install Optional Extras:
- Development tools:
Terminal window pip install -e .[dev] - Documentation tools (for contributing to docs):
Terminal window pip install -e .[docs]
- Development tools:
Verification
Section titled “Verification”After installation, verify using either the Python API or the CLI.
-
Python API (current import path):
from src.driver import MMMBaseDriverV2print("AMMM driver available:", MMMBaseDriverV2 is not None) -
Alternatively, verify the installed top-level module:
import srcprint("AMMM version:", getattr(src, "__version__", "unknown")) -
CLI tool (cache utilities):
Terminal window ammm-cache infoYou should see an “AMMM Cache Information” header.
You are now ready to configure and run the model! See the Quickstart Guide.