Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip compile: --prerelease and/or --extra-index-url not getting correct dependency version #1723

Closed
sbarrios93 opened this issue Feb 20, 2024 · 1 comment

Comments

@sbarrios93
Copy link

Using uv pip compile with --extra-index-url=https://download.pytorch.org/whl/nightly/cu121 with --prerelease=allow does not locate PyTorch 2.3.0, but using --index-url does.

❯ uv --version
uv 0.1.5

# Doesn't work
❯ VIRTUAL_ENV=.venv uv pip compile --no-deps --no-header --python-version 3.11.7 --extra-index-url=https://download.pytorch.org/whl/nightly/cu121 --prerelease=allow  -
torch
Resolved 1 package in 2.11s
torch==2.2.0

# Works but...
❯ VIRTUAL_ENV=.venv uv pip compile --no-deps --no-header --python-version 3.11.7 --index-url=https://download.pytorch.org/whl/nightly/cu121 --prerelease=allow  -
torch
Resolved 1 package in 1.61s
torch==2.3.0.dev20240219+cu121

# ... wouldn't work for this
❯ VIRTUAL_ENV=.venv uv pip compile --no-deps --no-header --python-version 3.11.7 --index-url=https://download.pytorch.org/whl/nightly/cu121 --prerelease=allow  -
torch
ruff
error: HTTP status client error (403 Forbidden) for url (https://download.pytorch.org/whl/nightly/cu121/ruff/)

# explicit version using --extra-index-url also doesn't work
❯ VIRTUAL_ENV=.venv uv pip compile --no-deps --no-header --python-version 3.11.7 --extra-index-url=https://download.pytorch.org/whl/nightly/cu121 --prerelease=allow  -
torch==2.3.0.dev20240219+cu121
  × No solution found when resolving dependencies:
  ╰─▶ Because there is no version of torch==2.3.0.dev20240219+cu121 and you require torch==2.3.0.dev20240219+cu121, we can conclude that the requirements are unsatisfiable.

I'm split 50/50 between I'm doing something wrong vs. This doesn't work correctly

@sbarrios93
Copy link
Author

Related to #1451

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

No branches or pull requests

1 participant