Flash raspbian light 32bit on your raspberry pi zeros
sudo apt update && sudo apt upgrade
sudo apt-get install python3-pip
pip3 install flask
sudo raspi-config
sudo apt install pigpio
sudo systemctl enable pigpiod.service
sudo systemctl start pigpiod.service