Knowledge Base

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

Knowledge Base

Python Library and Demos

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 the 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:

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:

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

Was this article helpful? Yes No

Please tell us how we can improve this article:

Submit
Created 02/10/2015 | Last Updated: 11/11/2023

Related Expansion Boards

Related Articles

Python Library and Demos
Python Library and Demo Samples
C Library and Demos
C Library and Demo Samples
CPP Library and Demos
C++ Library and Demo code
MicroPython Library and Demos
MicroPython Library and Demo Samples
Arduino Library and Demos
Demo code for the Arduino Platform
.Net Core Libraries
Use .Net Core with your Raspberry Pi Project
Windows 10 IOT Library & Demos
Windows 10 IOT Library & Demo Code
Node JS Library and Demos
Node JS Library and Demo Samples
Other Code Samples
Other Code Demos and Samples