Knowledge Base

The AB Electronics UK Knowledge Base provides support solutions, tutorials and troubleshooting guides.

Python Library and Demos

Created 02/10/2015 | Python Library and Demo Samples

Python

Python Library & Demos

We have python libraries available for several of our boards.  You can find all of the libraries and demos from github at:

https://github.com/abelectronicsuk/ABElectronics_Python_Libraries

Downloading and Installing the library

To download to your Raspberry Pi type in terminal: 

git clone https://github.com/abelectronicsuk/ABElectronics_Python_Libraries.git

To install the python library navigate into the ABElectronics_Python_Libraries folder and run:  

For Python 2.7:

sudo python setup.py install

For Python 3.4:

sudo python3 setup.py install

If you have PIP installed you can install the library directly from github with the following command:

For Python 2.7:

sudo python2.7 -m pip install git+https://github.com/abelectronicsuk/ABElectronics_Python_Libraries.git

For Python 3.4:

sudo python3.4 -m pip install git+https://github.com/abelectronicsuk/ABElectronics_Python_Libraries.git