I'm working through this tutorial, and it says to manually, and I mean manually, install
cd /home/pi/Downloads wget https://pypi.python.org/packages/source/R/RPi.GPIO/RPi.GPIO-0.5.11.tar.gz sudo tar -zxvf RPi.GPIO-0.5.11.tar.gz cd RPi.GPIO-0.5.11 sudo python3 setup.py install
I haven't worked with the GPIOs yet, so it seemed odd that I'd have to install, and quite manually no less, the seemingly official GPIO library/interface. I'm used to
sudo apt-get foo, but this seems a little extreme given the intended audience of the Pi (childrens and tech-muggles).
Looking online, the official documentation doesn't say if it's included in Raspbian or not, but a Makezine article from 2014 says that it is included with Raspbian. There have been several new versions of the package since the article was published. Current version is 0.6.3.
Do I need to manually install a GPIO package? Is
RPi.GPIO just the tutorial's author's favorite GPIO package? Did the Pi Zero not have the GPIO package in its distro for some period of time for some reason?
I'm working with a Raspberry Pi Zero W and the version of Raspbian called stretch: "2017-09-07-raspbian-stretch.zip".