Menu

Python Wheels for the Raspberry Pi

piwheels is a Python package repository providing Arm platform wheels (pre-compiled binary Python packages) specifically for the Raspberry Pi, making pip installations much faster. Packages are natively compiled on Raspberry Pi 3 and 4 hardware using the Mythic Beasts Pi cloud.

Packages272,670
Wheels2,583,202
Downloads (all time)54,372,759
Downloads (last 30 days)2,274,173

Configuration

Raspberry Pi OS includes configuration for pip to use piwheels by default, which lives at /etc/pip.conf:

[global]
extra-index-url=https://www.piwheels.org/simple

With this simple configuration change, pip should now search piwheels for built distributions of packages and use them in preference to building from source. You can test this out by creating a virtual environment and attempting to install scipy which usually involves a fairly lengthy compilation:

$ sudo apt install virtualenv python3-virtualenv -y
$ virtualenv -p /usr/bin/python3 testpip
$ source testpip/bin/activate
(testpip) $ pip install scipy
...
(testpip) $ deactivate
$ rm -rf testpip/
Latest blog posts
  • loading...

Support

Wheels are provided to support all Raspberry Pi models: Pi 4, Pi 400, Pi 3, Pi 2 (linux_armv7l wheels), Pi 1 and Pi Zero (linux_armv6l wheels). Our wheels are only supported under 32-bit (armhf) Raspberry Pi OS, and only for the version of Python provided by each OS release:

Raspberry Pi OS versionPython versionStatus
JessiePython 3.4
StretchPython 3.5
BusterPython 3.7
BullseyePython 3.9

See each package's project page for information on available wheels, and see the FAQ for further technical details.

Page last updated 2021-09-21 14:56 UTC