# run these commands in the terminal once you have navigated to the folder containing the 'requirements.txt' file and the rest of the code: e.g. cd ~/Downloads/pi-switch or cd /home/evanreinhold/Downloads/pi-switch # make sure the system is up to date: sudo apt update sudo apt upgrade # install os dependencies sudo apt-get install -y python3-dev libasound2-dev python3-rpi-lgpio # update pip pip install --upgrade pip pip install --upgrade setuptools wheel # install the python libraries python3 -m venv .venv source .venv/bin/activate python3 -m pip install -r requirements.txt # run the code (don't forget you have to be in the folder where you put the code, e.g. `cd /home/evanreinhold/Downloads/pi-switch`) .venv/bin/python3 pi-switch.py