Skip to content

Installation

PyProbs supports Python 3.11 and newer, and has no dependencies.

$ uv add pyprobs

New to uv? Follow its installation guide first.

$ pip install pyprobs

Run it inside a virtual environment, so PyProbs is installed for your project rather than for the whole system.

Unreleased changes

To try changes that are not on PyPI yet, install PyProbs straight from GitHub:

$ uv add git+https://github.com/OmerFI/PyProbs
$ pip install git+https://github.com/OmerFI/PyProbs

Check the installation

A probability of 1 always comes out True, which makes for a quick check:

>>> from pyprobs import Probability as pr
>>> pr.prob(1)
True

Head over to the User Guide to see what else it can do.