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
Wheel is required to install the latest version of the PyLXCA toolkit. You can download Wheel from the Python Wheels webpage, and install Wheels using the following command: pip install wheel
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 3.6.x (Later versions have not been tested.)NoteFor
XClarity Administrator Python Client Toolkit v2.8 and earlier, Python v2.7.x or 3.6.x is required. - 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)
Procedure
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 setup.py install
After you finish
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__
1.0
Give documentation feedback