No need, run python as a container. No need to mix what's installed on the hostOS.

https://hub.docker.com/_/python

this manages to be even worse. since it's setup full of holes to usable (eg reaching out on the filesystem), you get the worst of random binaries without isolation, plus the dead end for updates you get in practice when dealing with hundreds of containers outside of a professionally managed cluster.