Have a read here. It’s due to a change made in Pi OS. St7789 install error with Bookworm? - Support - Pimoroni Buccaneers