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

--no-index not recognising whl #12636

Open
1 task done
james-smith-uk opened this issue Apr 17, 2024 · 1 comment
Open
1 task done

--no-index not recognising whl #12636

james-smith-uk opened this issue Apr 17, 2024 · 1 comment
Labels
S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior

Comments

@james-smith-uk
Copy link

Description

  • Pip appears to ignores the --no-links command for some wheels hosted on GitHub. Instead pip attempts to retrieve the wheel again from github.

Expected behavior

For other libraries sourced from github, no outbound connection is made - for example:
flash-attn @ https://github.com/Dao-AILab/flash-attention/releases/download/v2.3.3/flash_attn-2.3.3+cu116torch2.0cxx11abiFALSE-cp310-cp310-linux_x86_64.whl

pip version

22.3.1

Python version

3.10

OS

Linux

How to Reproduce

Output

No response

Code of Conduct

@james-smith-uk james-smith-uk added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Apr 17, 2024
@notatallshaw
Copy link
Contributor

notatallshaw commented May 4, 2024

For other libraries sourced from github, no outbound connection is made - for example:
flash-attn @ https://github.com/Dao-AILab/flash-attention/releases/download/v2.3.3/flash_attn-2.3.3+cu116torch2.0cxx11abiFALSE-cp310-cp310-linux_x86_64.whl

I don't think this is correct, when I run this requirement on a platform that matches that matches the wheel it does download it:

$ pip install --upgrade --dry-run -r requirements.txt --no-index --find-links wheels/
Looking in links: wheels/
Collecting flash-attn@ https://github.com/Dao-AILab/flash-attention/releases/download/v2.3.3/flash_attn-2.3.3+cu116torch2.0cxx11abiFALSE-cp310-cp310-linux_x86_64.whl
  Downloading https://github.com/Dao-AILab/flash-attention/releases/download/v2.3.3/flash_attn-2.3.3+cu116torch2.0cxx11abiFALSE-cp310-cp310-linux_x86_64.whl (30.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 30.2/30.2 MB 31.4 MB/s eta 0:00:00
ERROR: Could not find a version that satisfies the requirement einops (from flash-attn) (from versions: none)
ERROR: No matching distribution found for einops

I only see no attempt to download it when I'm running on a platform that doesn't match the wheel:

$ pip install --upgrade --dry-run -r requirements.txt --no-index --find-links wheels/
Looking in links: wheels/
ERROR: flash_attn-2.3.3+cu116torch2.0cxx11abiFALSE-cp310-cp310-linux_x86_64.whl is not a supported wheel on this platform

The error here though is clearly different it says "is not a supported wheel on this platform". What error are you seeing when pip does not download a wheel?

I don't know the intention of --no-index when you provide a direct link for the requirement, but it is not looking up an index, and if you provide a direct link I would expect pip to use that, and not a wheel found with --find-links that does not match the url of the direct requirement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants