Wiki
Clone wikiLea / 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:
- PyPI Lea 3 (requires Python 2.6+)
- PyPI Lea 4 (requires Python 3.8+)
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
- open a terminal (shell)
- if needed, logon as root user or starts the following command with sudo
- 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
- go on PyPI Lea page for the version you want (see above)
- click on Download files and download lea-x.y.tar.gz
- open a terminal (shell)
- unzip the lea-x.y.tar.gz file
- cd lea-x.y
- if needed, logon as root user or starts the following command with sudo
- type
python setup.py install
Installation verification
To verify that Lea is correctly installed, whatever the installation method,
- open a terminal
- start python interpreter
python
- type the following:
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.
import lea
Note: You can easily check the precise version you are using by typing
lea.__version__
Updated