Skip to content

Why is Python installed to /usr/local/bin/python3? #671

@hwittenborn

Description

@hwittenborn

I just got started using the image, and I noticed that Python is installing to files like /usr/local/bin/python3 by default. Is there any reason for doing so?

The issue mostly came into play when I was using a #!/usr/bin/python3 shebang at the top of one of my scripts, after which I noticed imports were just straight-up not working after installing some dependencies with Pip.

It's not really an issue if you can figure out how to fix the issue (running type python3 manually in a container revealed the issue for me), though I suspect that some users might end up spending quite a bit of time on it.

Perhaps there could be symlinks to /usr/local/bin for the Python executables (i.e. /usr/bin/python3 to /usr/bin/python3.10 on the current latest tag)? I'm seeing that they go to Debian-installed executables by default (/usr/bin/python3 goes to /usr/bin/python3.9 at least), but I don't see any benefit provided by that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionUsability question, not directly related to an error with the image

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions