pigpio (i.e., "Pi GPIO", not "Pig Pio") is a softare library for the Raspberry Pi which allows control of the General Purpose Input Outputs (GPIO). pigpio works on all versions of the Pi.

If trying to execute some Python code you get a message something like:

Can't connect to pigpio at localhost(8888)

Did you start the pigpio daemon? E.g. sudo pigpiod
(etc.) you probably need to download and install pigpio.

How to install the Python pigpio library#

From the Download & Install page of pigpio library:

If you don't already have a ~/pigpio directory:

cd ~
mkdir pigpio
then download, compile and install it:
cd ~/pigpio
rm pigpio.zip
sudo rm -rf PIGPIO
wget abyz.me.uk/rpi/pigpio/pigpio.zip
unzip pigpio.zip
sudo make install 

Tags:  Recipe, Python, Software