Skip to content

uv python upgrade reports its own bin link as "not managed by uv" when the install path traverses a symlink #23364

Open

Description

@ndimiduk

Summary

When the Python install and bin directories are reached through a symlinked parent directory, uv python upgrade treats the existing python3.X link in the bin directory as foreign. It warns Executable already exists at … but is not managed by uv; use uv python install 3.X --force to replace it and leaves the link alone. This is the default layout on Fedora Atomic desktops (Silverblue, Bazzite, etc.), where /home is a symlink to /var/home, so every patch upgrade prints the warning. It's probably the cause of #15669, which was closed as unreproducible.

Seen with uv 0.13.9 on Linux x86_64. The same steps on a non-symlinked path upgrade the link normally:

mkdir -p /tmp/uvtest/real && ln -s /tmp/uvtest/real /tmp/uvtest/link
export UV_PYTHON_INSTALL_DIR=/tmp/uvtest/link/py UV_PYTHON_BIN_DIR=/tmp/uvtest/link/bin
uv python install 3.11.17
uv python upgrade 3.11   # warns "not managed by uv"; link not repointed

Debugged and drafted with LLM assistance.

Platform

Linux 7.3.4-ogc8.1.fc45.x86_64 x86_64 GNU/Linux

Version

uv 0.13.9 (Homebrew 2026-11-17 x86_64-unknown-linux-gnu)

Python version

Python 3.14.10

Activity

  1. added
    bug
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions