Skip to content

Installation

Requirements

  • Python 3.11 or higher
  • Rust toolchain (for building from source)

Install from PyPI

Once published, you can install EpiModel directly from PyPI:

pip install epimodel

Install from Source

To install the latest development version:

1. Install Prerequisites

Install Rust

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Install Poetry (optional, for development)

curl -sSL https://install.python-poetry.org | python3 -

2. Clone the Repository

git clone https://github.com/MUNQU/epimodel.git
cd epimodel

3. Install with pip

pip install maturin
cd py-epimodel
maturin develop --release

4. Install with Poetry (for development)

cd py-epimodel
poetry install
maturin develop --release

Verify Installation

Test that EpiModel is correctly installed:

from epimodel import ModelBuilder
from epimodel.constants import ModelTypes

print("EpiModel installed successfully!")

Next Steps