Python integration is installed together with xiApi, just follow the instructions for package installation: https://www.ximea.com/support/wiki/apis/XIMEA_Linux_Software_Package#Installation
To check if it is OK, run:
python -c "import ximea; print(ximea.__version__)"
The following steps are optional. However, these steps are necessary for run all examples:
pip --version
sudo apt-get install python-pip
pip install numpy
python -c "import numpy;print(numpy.__version__)"
pip install matplotlib
python -c "import matplotlib;print(matplotlib.__version__)"
pip install Pillow
python -c "import PIL;print(PIL.__version__)"
sudo apt-get install libopencv-dev python-opencv
python -c "import cv2;print(cv2.__version__)"