-
Notifications
You must be signed in to change notification settings - Fork 26
Build and Install
Banana Pi -BPI edited this page Jul 18, 2026
·
1 revision
- A supported Banana Pi running Linux.
- Python 3, Python development headers, a C compiler and Git.
- Runtime access to the GPIO register/device path used by the selected backend.
Example Debian/Ubuntu preparation:
sudo apt update
sudo apt install python3 python3-dev python3-pip build-essential gitgit clone https://github.com/BPI-SINOVOIP/RPi.GPIO.git
cd RPi.GPIO
python3 setup.py build_ext --inplaceVerify that the locally built extension imports:
python3 -c 'import RPi.GPIO as GPIO; print(GPIO.VERSION); print(GPIO.RPI_INFO)'Run the command from the repository directory so Python loads the just-built extension.
For a system installation using the repository's legacy setuptools flow:
sudo python3 setup.py installDistribution Python policies differ. On managed systems, package the module or use an environment appropriate for native extensions instead of bypassing the distribution package manager.
Inspect detection first:
python3 - <<'PY'
import RPi.GPIO as GPIO
print(GPIO.VERSION)
print(GPIO.RPI_INFO)
PYStop if the detected model does not match the exact board/carrier. Read Known Limitations and Roadmap before assuming pull, edge or PWM support.
Documentation for BPI-SINOVOIP/RPi.GPIO · Verify the exact board, carrier, revision and voltage before driving GPIO.