Installing the Python (PyLXCA) toolkit

To use the PyLXCA commands and APIs, you must install the Lenovo XClarity Administrator Python Client Toolkit (PyLXCA) in Python.

Before you begin

Python (including the request and logging modules) is required to use to the PyLXCA toolkit. Ensure that the following requirements are met. For more information about Python, see the Python website.
  • Python v2.7.x and 3.6.x (Later versions have not been tested.)
  • Python requests v2.7.0 or later (Install using the following command: pip install requests –upgrade)
  • Python logging v0.4.9.6 or later (Install using the following command: pip install logging –upgrade)


To install the PyLXCA from the Internet using pip, run the following command:
pip install pylxca
To build and install from source, download the PyLXCA source code from Python LXCA Client (PyLXCA) Toolkit website, and run the following command from the source root directory:
python install

What to do next

For information about using the PyLXCA commands, see Using the Python (PyLXCA) toolkit.

You can display the current version of PyLXCA from the python prompt, for example:
$ python	
Python 2.7.10 (default, Sep 16 2015, 14:46:04)
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pylxca
>>> print pylxca.__version__