apt-get install pip

Note, selecting 'python3-pip' instead of 'pip'

setup env

python3 -m venv .venv
source .venv/bin/activate

pip install RPi.GPIO
pip install SN74HC165

rpi library

build-in library:

  • time, threading,

error

  • ~~SN74HC165 ?? ~~

hardware driver

ref