Install
Installation is as simple as:
pip install hall
Hall has no required dependencies except python 3.8, 3.9 or 3.10, and
mpmath
.
If you have pip
installed, you're good to go.
Increase performance with gmpy (optional)
Optionally, the gmpy2
dependency can be installed to significantly speed up
the multi-precision arithmatical calculations. This adds bindings to the
GMP
(MPIR
on Windows),
MPFR
, and MPC
libraries. On Ubuntu-based systems, these are installed with:
apt install libgmp-dev libmpfr-dev libmpc-dev
Now you can install the gmpy2
dependency with:
pip install hall[gmpy2]
To verify that gmpy is installed, check the backend:
>>> from hall.backend import get_backend
>>> get_backend()
'gmpy'