- Start by updating the packages index:
sudo apt update
- Install pip for Python 2 and all of its dependencies:
sudo apt install python-pip
- Verify the installation by issuing the following command which will print the pip version:
pip --version
The version number may vary, but it will look something like this:pip 18.1 from /usr/lib/python2.7/dist-packages/pip (python 2.7)
- pip3 install RPi.GPIO
These are the steps I followed to get things setup on one of my Pi based nodes so I could make use of GPIO. I proved that it works by following the great tutorial here: https://learn.sparkfun.com/tutorials/raspberry-gpio/all
What will I do with it? Well, the blinking lights were certainly fun but now I need to learn how to harness my newfound powers for good, not evil. In other words: I haven’t a clue yet.