GPIO control - need some help

It seems like

pip install rpi.gpio

may be slightly naive on the maintainer’s part as it attempts to invoke a cross compiler. Try running the following commands before that pip install command:

sudo apt-get update
sudo apt-get install build-essential
export ARCH=arm
export CROSS_COMPILE=/usr/bin/

I don’t know if this will work – i have not looked intensively at the rpi.gpio script, but hope this helps.

Sam

3 Likes