uv icon indicating copy to clipboard operation
uv copied to clipboard

Show the available versions when `pip install package==x.y.z` is unsatisfiable due to version

Open pantheraleo-7 opened this issue 1 year ago • 0 comments

pip displays the available versions.

pip3 install pyspark==4.0.0
ERROR: Could not find a version that satisfies the requirement pyspark==4.0.0 (from versions: 2.1.2, 2.1.3, 2.2.0.post0, 2.2.1, 2.2.2, 2.2.3, 2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8, 3.0.0, 3.0.1, 3.0.2, 3.0.3, 3.1.1, 3.1.2, 3.1.3, 3.2.0, 3.2.1, 3.2.2, 3.2.3, 3.2.4, 3.3.0, 3.3.1, 3.3.2, 3.3.3, 3.3.4, 3.4.0, 3.4.1, 3.4.2, 3.4.3, 3.5.0, 3.5.1, 3.5.2, 3.5.3, 4.0.0.dev1, 4.0.0.dev2)

uv just concludes that requirements are unsatisfiable

uv pip install pyspark==4.0.0
  × No solution found when resolving dependencies:
  ╰─▶ Because there is no version of pyspark==4.0.0 and you require pyspark==4.0.0, we can
      conclude that your requirements are unsatisfiable.

this can be helpful, and may eliminate the need to visit the package's pypi page or gh releases.

pantheraleo-7 avatar Oct 20 '24 06:10 pantheraleo-7