Installation

PyHazards requires Python 3.8+ and can be installed using pip. We recommend using a conda environment for installation.

Installing PyHazards

Base install:

pip install pyhazards

PyTorch notes (Python 3.8, CUDA 12.6 example):

  • Install the matching PyTorch wheel first, then install PyHazards.

  • Example (CUDA 12.6):

    pip install torch --index-url https://download.pytorch.org/whl/cu126
    pip install pyhazards
    

Requirements

  • Python >= 3.8

  • PyTorch == 2.3.0