ok I see. python3-spidev is pulled from https://archive.raspberrypi.org/ Bullseye repository, while python3 is pulled from http://raspbian.raspberrypi.org/ Bookworm repository. This is causing a conflict between versions now. Unfortunately there is still no Bookworm repository available from https://archive.raspberrypi.org/ ![]()
The other method tried is the pyton pip install. There you are missing some compiler ![]()
you could try following to install required files
apt install gcc-arm-linux-gnueabihf