Install HierachicalForecast with pip or conda
We recommend using uv as Python package manager, for which you can find installation instructions here. You can then install the released version of HierachicalForecast:
uv pip install hierarchicalforecast
Alternatively, you can directly install from the Python package index with:
pip install hierarchicalforecast
or within a conda environment:
conda install -c conda-forge hierarchicalforecast
Tip We recommend installing your libraries inside a python virtual or conda environment.

Installing from source

We recommend using uv as Python package manager, for which you can find installation instructions here.
  1. Clone the HierachicalForecast repo:
$ git clone https://github.com/Nixtla/hierachicalforecast.git && cd hierachicalforecast
  1. Create the environment:
$ uv venv --python 3.10
  1. Activate the environment:
  • on MacOS / Linux:
$ source .venv/bin/activate
  • on Windows:
$ .\.venv\Scripts\activate
  1. Install the dependencies and the library
uv pip install -r setup.py
uv pip install .