Ensure that the Pre-requisites from the previous section have been performed, checked and tested before proceeding.
The library has been tested against Python 2.7, 3.4, 3.5 and 3.6.
For Python3 installation, substitute the following in the instructions below.
It was originally tested with Raspbian on a rev.2 model B, with a vanilla kernel version 4.1.16+, and has subsequently been tested on Raspberry Pi model A, model B2, 3B, Zero (Raspbian Jessie and Stretch) and OrangePi Zero (Armbian Jessie).
Install the latest version of the library directly from PyPI:
$ sudo apt-get install python-dev python-pip libfreetype6-dev libjpeg-dev build-essential $ sudo -H pip install --upgrade pip $ sudo apt-get purge python-pip $ sudo -H pip install --upgrade luma.oled