Installation#

The recommended method of installing EPRAYA is environment-based using the pip command.

Installing with pip#

If you are using a notebook or distribution, the installation can be done by executing the following command on the notebook’s cells or terminal, respectively:

pip install epraya

In other cases, use the terminal and follow this step-by-step guide:

  1. Install Python.

  2. Create and activate a virtual environment with venv. In this example, we use myenv:

    Ubuntu and Debian

    sudo apt install python3-venv
    python3 -m venv myenv
    source myenv/bin/activate
    

    Fedora

    sudo dnf install python3-venv
    python3 -m venv myenv
    source myenv/bin/activate
    

    Mac

    python3 -m venv myenv
    source myenv/bin/activate
    

    Windows Cmd

    python -m venv myenv
    .\myenv\Scripts\activate
    
  3. Install EPRAYA using pip:

    pip install epraya
    
  4. Make sure tkinter is installed (by default it’s in the Python download, but it can create problems later if missing).

    Ubuntu and Debian

    sudo apt install python3-tk
    

    Fedora

    sudo dnf install python3-tk
    

Now you are ready to simulate EPR data with EPRAYA!