Wiki

Clone wiki

Lea / Installation

Installation of Lea 4 package

Requirements

Lea 4 requires Python 3.8+.

Lea is a pure Python module. For most of Lea's functions, there are no other module to install. For extended functionalities, you may install few modules that are recognized by Lea:

  • matplotlib: to plot histograms
  • sympy: to make symbolic calculations
  • pandas: to define probability distributions from dataframes
  • numpy: for advanced functions in Markov chains

Installation procedure

There are several methods to install the Lea on your system. These are fairly simple and standard. The Lea package is available in the PyPI Python package index:

Lea could then be downloaded and installed with just one command, provided that easy_install or_pip_ tool is installed.

If pip is installed on your system

  1. open a terminal (shell)
  2. if needed, logon as root user or starts the following command with sudo
  3. execute the following command (replace version id as required):
    pip install lea==4.0.0
    

If a previous version of Lea is already installed, it can be upgraded with

pip install --upgrade lea

Otherwise

  1. go on PyPI Lea page for the version you want (see above)
  2. click on Download files and download lea-x.y.tar.gz
  3. open a terminal (shell)
  4. unzip the lea-x.y.tar.gz file
  5. cd lea-x.y
  6. if needed, logon as root user or starts the following command with sudo
  7. type
    python setup.py install
    

Installation verification

To verify that Lea is correctly installed, whatever the installation method,

  1. open a terminal
  2. start python interpreter
    python
    
  3. type the following:
    import lea
    
    If no error message is displayed, then the Lea package is correctly installed on your system. You can type your own Lea commands or follow Lea tutorial.

Note: You can easily check the precise version you are using by typing

lea.__version__

Updated