Check the RPi.GPIOΒΆ

If you are a Python user, you can program GPIOs with API provided by RPi.GPIO.

RPi.GPIO is a module to control Raspberry Pi GPIO channels. This package provides a class to control the GPIO on a Raspberry Pi. For examples and documents, visit:

Test whether RPi.GPIO is installed or not, type in python:


In Python CLI, input import RPi.GPIO, If no error prompts, it means RPi.GPIO is installed.

import RPi.GPIO

If you want to quit python CLI, type in: