Wiki

Clone wiki

Lea / Installation

Installation of Lea package

Requirements

Lea requires Python 2.6+ or Python 3.x. Lea is a pure Python module: there are no other module to install, no OS dependencies: it shall work on Linux, Mac OS X, Windows, etc.

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 easy_install 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. type
easy_install -U lea

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==3.1.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

For more information on PyPI package installation or for troubleshooting, see Installing Distributions from the Python Package Index.

Installation verification

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

  1. open a terminal
  2. start python interpreter
python
  1. 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 2 tutorial or Lea 3 tutorial.

Note: if you've installed Lea 3, you can easily check the precise version you are using by typing

>>> lea.__version__

Updated