Skip to content

Installation

Install from PyPI

Install pysib with pip:

pip install pysib

Requirements

pysib requires:

  • Python >= 3.9
  • NumPy
  • SciPy
  • Matplotlib
  • LAPACK

On macOS, pysib links against the Accelerate framework. On Linux, it links against liblapack.

Development install

For development from a local checkout, run:

pip install -e .

This compiles the local C extensions and installs the package in editable mode.

Native extensions

The oe, armax, bj, and filtered estimators use C extensions linked against LAPACK.

The arx, sm, correlation, iv, predict, and simulate functions are implemented in Python using NumPy and SciPy.

Verify the installation

After installation, check that the package imports correctly:

python -c "import pysib; print(pysib.__name__)"

For a development checkout, run the test suite with:

python3 -m pytest tests/ -v