I don’t use python much but I don’t know why it wouldn’t be possible build it statically and package your entire dependency set into a single directory.
It's certainly possible in python, and there's a handful of tools/approaches, but the last one I used, PEX, left me scarred. It's certainly a much less common or simple approach then copying a venv into a docker container.
I don’t use python much but I don’t know why it wouldn’t be possible build it statically and package your entire dependency set into a single directory.