That error message is a result of a change made in the Bookworm OS release.
Virtual Environments, Libgpiod, gpiodevice and the current mess I’m making of our Python libraries - Support - Pimoroni Buccaneers
Which is likely why things are messed up for you. One way out is to reflash your SD card and select the “Legacy OS” option. That will get you Bullseye instead of Bookworm. And the installer “should” work OK. It’s a viable option on a Pi 4.