Skip to content

Misleading version constraint output from uv pip install #23293

Open

Description

@murdock-grewar

Summary

uv pip install has some strange output relating to yanked releases.

Running this:

uv venv -p 3.13
uv pip install 'aprict<=0.1.0'

Produces this output:

error: No solution found when resolving dependencies
  cause: Because aprict==0.0.24.dev1 was yanked (reason: Error in version number (should have been
         0.0.25)) and aprict==0.0.34.dev8 was yanked (reason: Failed version bump (should have been
         updated to v0.0.35)), we can conclude that all of:
             aprict==0.0.24.dev1
             aprict==0.0.34.dev8
          cannot be used. (1)

         Because the current Python version (3.13.16) does not satisfy Python>=3.14 and all of:
             aprict<=0.0.23
             aprict>=0.0.24,<=0.0.33
             aprict>=0.0.34,<=0.1.0
         depend on Python>=3.14, we can conclude that all of:
             aprict<=0.0.23
             aprict>=0.0.24,<=0.0.33
             aprict>=0.0.34,<=0.1.0
          cannot be used.
         And because only the following versions of aprict are available:
             aprict<=0.0.23
             aprict==0.0.24.dev1
             aprict>=0.0.24,<=0.0.33
             aprict==0.0.34.dev8
             aprict>=0.0.34
         we can conclude that all of:
             aprict<0.0.24.dev1
             aprict>0.0.24.dev1,<0.0.34.dev8
             aprict>0.0.34.dev8,<=0.1.0
          cannot be used.
         And because we know from (1) that all of:
             aprict==0.0.24.dev1
             aprict==0.0.34.dev8
          cannot be used, we can conclude that aprict<=0.1.0 cannot be used.
         And because you require aprict<=0.1.0, we can conclude that your requirements are

This output is overly noisy and quite misleading, because all versions of this module, including the yanked releases, require Python>=3.14. I find that the output above strongly implies that the yanked versions might work if they were downloaded and manually installed. This might lead a user to waste their time trying to source versions of the module which could be compatible with Python==3.13.

My guess is that the reason this is happening is that uv is checking for reasons why the package versions can't be installed, and is checking first for whether a version is yanked, and is returning early on that check before anything else. I'd suggest that uv should also check whether a module version would be installable if it weren't yanked, and should only mentioned the yanked versions if being yanked is the sole thing preventing them from being installed.

Platform

Linux 7.2.8-arch1-2 x86_64 GNU/Linux

Version

uv 0.12.22 (70fe119 2026-10-01 x86_64-unknown-linux-gnu)

Python version

Python 3.13.16

Activity

  1. added
    bug
    on Nov 19, 2026
  2. abhi478jeetur-rgb commented on Nov 19, 2026

    @abhi478jeetur-rgb
  3. murdock-grewar commented on Nov 19, 2026

    @murdock-grewar
    Author

    Is it against the astral-sh/uv code of conduct to copy-paste in a response from an LLM?

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