mod-nest-exp is hosted on GitHub, but the easiest way to install it is to download the latest release from its PyPI repository:

$ pip install --user mod-nest-exp

GitHub + pip

If, for any reason, you prefer to download the library from GitHub, you can clone the repository and install the repository by running (with the admin rights):

$ pip install --user

Keep in mind this will install the development version of the library, so not everything may work as expected compared to a stable release.

GitHub + setuptools

If you do not have pip installed, you can still clone the repository and run the file manually:

$ git clone
$ cd modular-nested-exponentiation
# python install