Skip to content

Installation

We recommend installing HBSIR in a virtual environment to avoid conflicts with other Python packages.

Setting Up a Virtual Environment

  1. Create a virtual environment

    python -m venv venv
    
  2. Activate the virtual environment

    venv\Scripts\activate
    
    source venv/bin/activate
    

For more information go to the venv documentation or the Real Python tutorial on virtual environments.

Installing HBSIR

  1. Install the latest stable version from PyPI

    pip install hbsir
    
  2. Alternatively, install the development version from GitHub

    pip install git+https://github.com/Iran-Open-Data/HBSIR.git