From 3d0b0df51188a4a4b7061643c42f3f792b8a37b8 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Fri, 23 Jun 2023 13:51:40 -0700 Subject: [PATCH] Further clarify distro-provided Python --- python/content.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/content.md b/python/content.md index 7a8abeda0..007f7622b 100644 --- a/python/content.md +++ b/python/content.md @@ -61,4 +61,4 @@ $ docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/ ## Multiple Python versions in the image -In the non `python:slim` variants there will be an additional older `python` executable at `/usr/bin/python` while the desired newer `/usr/local/bin/python` is the default choice in the `$PATH`. This is an unfortunate side-effect of using the `buildpack-deps` image in the non-slim variants +In the non-slim variants there will be an additional (distro-provided) `python` executable at `/usr/bin/python` (and/or `/usr/bin/python3`) while the desired image-provided `/usr/local/bin/python` is the default choice in the `$PATH`. This is an unfortunate side-effect of using the `buildpack-deps` image in the non-slim variants (and many distribution-provided tools being written against and likely to break with a different Python installation, so we can't safely remove/overwrite it).