I install python into my user directory on debian and it works great. But if you need to run a particular version of python as root I’d go the container (podman/docker/etc) instead of virtualbox. Massive performance benefit over vbox as containers share your host OS kernel and generally integrates better into tooling. You just specify an image by name like 3.13-bookworm and you get a container with python 3.13 on a debian bookworm equivalent userland
I install python into my user directory on debian and it works great. But if you need to run a particular version of python as root I’d go the container (podman/docker/etc) instead of virtualbox. Massive performance benefit over vbox as containers share your host OS kernel and generally integrates better into tooling. You just specify an image by name like 3.13-bookworm and you get a container with python 3.13 on a debian bookworm equivalent userland