Skip to content

Fix uv sync failure on Windows (symlink privilege) - #126

Open
niutonsilva338-debug wants to merge 1 commit into
browser-use:mainfrom
niutonsilva338-debug:fix/windows-uv-python-minor-version-link
Open

Fix uv sync failure on Windows (symlink privilege)#126
niutonsilva338-debug wants to merge 1 commit into
browser-use:mainfrom
niutonsilva338-debug:fix/windows-uv-python-minor-version-link

Conversation

@niutonsilva338-debug

@niutonsilva338-debug niutonsilva338-debug commented Aug 10, 2026

Copy link
Copy Markdown

What

Pin .python-version to a concrete patch version (3.12.13) instead of relying on uv's minor-version alias.

Why

On Windows, uv sync (and uv python install) fails with:

error: Missing expected target directory for Python minor version link at
C:\Users\<user>\AppData\Roaming\uv\python\cpython-3.12.13-windows-x86_64-none

This happens because uv creates the cpython-3.12-... -> cpython-3.12.13-...
alias as a filesystem symlink, which requires Windows Developer Mode or
admin/elevated privileges (SeCreateSymbolicLinkPrivilege). Without either,
the concrete Python interpreter still downloads and installs correctly, but
the alias step fails and aborts uv sync.

Pinning .python-version to the concrete patch version sidesteps the
minor-version symlink entirely, so uv sync succeeds out of the box on a
default (non-Developer-Mode) Windows machine.

Testing

Reproduced the failure and verified the fix on a fresh Windows 11 install
with uv 0.12.2.


Summary by cubic

Pins .python-version to Python 3.12.13 so uv skips the minor-version alias symlink on Windows. This fixes uv sync failures on machines without Developer Mode or admin rights.

  • Bug Fixes
    • Set .python-version to 3.12.13 to bypass the cpython-3.12cpython-3.12.13 symlink.
    • Enables uv sync and uv python install to run on Windows without elevated privileges.

Written for commit 60bb435. Summary will update on new commits.

Review in cubic

uv sync fails on Windows with 'Missing expected target directory for
Python minor version link' when Developer Mode / admin privileges are
unavailable to create the minor-version symlink (e.g. cpython-3.12 ->
cpython-3.12.13). Pinning a concrete patch version sidesteps the
symlink step entirely.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Re-trigger cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant