I installed on latest Raspbian (bullseye) with Snapcraft. However, when I tried to run hello_world.py with python3, I got
modprobe: FATAL: Module kheaders not found in directory /lib/modules/5.10.63-v7+
Unable to find kernel headers. Try rebuilding kernel with CONFIG_IKHEADERS=m (mo dule) or installing the kernel development package for your running kernel versi on.
chdir(/lib/modules/5.10.63-v7+/build): No such file or directory
Traceback (most recent call last):
File "/bcc/examples/./hello_world.py", line 12, in <module>