Link Search Menu Expand Document
Papers Video GitHub EXPEKCTATION About

Installation from PyPI


The Python Package Index (PyPI) is the easiest way of installing PyXAI.

Note that you need first Python 3 (version 3.6, or later) to be installed. You can do it, for example, from

Installing PyXAI

sudo apt update

Check whether ‘python3-pip’ is installed. If it is not the case, execute:

sudo apt install python3-pip

Or check whether you have the last version:

python3 -m pip install --upgrade pip

Then, install PyXAI using the command:

python3 -m pip install pyxai


Since V1.0.10, PyXAI’s Graphical Interface is independent and no longer mandatory, to resolve compatibility issues with PyQt6. Of course, you can still manage pictorial explanations without the graphical interface (for this, more information is given in the Visualization page).

python3 -m pip install pyxai[gui]

To use PyXAI’s graphical interface, you may need to install:

sudo apt install ffmpeg libsm6 libxext6 qt6-base-dev libxcb-cursor0 -y

Updating the version of PyXAI (for PyPi)

For updating your version of PyXAI, simply execute:

python3 -m pip install -U pyxai