flatpak, docker ? i.e. include an almost complete distribution just to make one package work? but what if you want that package to work in the distribution you have now? What if you need 2 different packages that are in different flatpacks or different docker images?
Well, if you're using GRPC anyway, and have the protocol buffers already... It's hard to resist the temptation after a few hours of installing broken package versions.
Incidentally, I suspect this is the spiritual origin of microservoces...
obviously don't try those first I'm just saying there's a stack of options to work with for any level of isolation you desire.
start with wheels if you just want pre-built binaries,
move up to conda if you need arch and OS-specific C libs that depend on system packages,
flatpack or docker if you dont want those to mess up your host,
or unikernel/firecracker/VMs if you need kernel modules or hardware virtualization.