Setting up EPRpy

  • To install EPRpy, python needs to be installed. EPRpy works with python versions greater than 3.9. Python can be downloaded from the official website.

  • Python installation and version can be confirmed by typing python in a terminal or command prompt. Note that the alias for python can be python3 on your operating system.

  • If python and its package manager pip is installed, EPRpy can be installed using pip.

Install from a pre-built distribution

Use python’s package manager pip. Execute the following in a terminal (or command prompt) :

python -m pip install eprpy

Install from source

Clone the EPRpy repository and then navigate to the folder where setup.py file is present. Then, run in a terminal (or command prompt) :

python -m pip install .

Installing EPRpy will also install the following python libraries required by EPRpy:

Importing

If the installation is successful, you can import EPRpy and printing the version as shown below.

import eprpy as epr
print(epr.__version__)

Upgrading

python -m pip install eprpy --upgrade