Skip to content

Changing the symlink location of uv python install --default #13977

@glin

Description

@glin

Question

Hi, I came across uv python install --default from #8650 and thought it was a nice feature. I want to use uv to install a single global python automatically on the PATH for a Docker image.

I've installed uv to /usr/local/bin already via:

curl -LsSf https://astral.sh/uv/install.sh | env UV_INSTALL_DIR="/usr/local/bin" sh

However, uv python install --default currently does not seem to have a configurable location. It always uses ~/.local/bin unless there's some env var I haven't found yet. Is it possible to change the location for the default symlinks?

I tried UV_INSTALL_DIR, but it is not used here. I know there's also UV_PYTHON_INSTALL_DIR, but that serves a different purpose.

UV_INSTALL_DIR=/usr/local/bin uv python install --default --preview 3.12

Platform

RHEL 8, x86_64

Version

uv 0.7.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionAsking for clarification or support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions