Bagel: When installing requirements.txt this error appears at the end

Anyone knows what I should do to compßlete the installation?

Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 35, in <module>
        File "C:\Users\abu-m\AppData\Local\Temp\pip-install-6owizwex\flash-attn_b8a19e621bde4950b997dc5c4077bbb2\setup.py", line 19, in <module>
          import torch
      ModuleNotFoundError: No module named 'torch'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Comments: 19 (3 by maintainers)

Most upvoted comments

I was having the same issue until I tried a prepackaged flash_attn whl

pip install torch==2.7.0+cu128 --extra-index-url https://download.pytorch.org/whl/cu128
pip install https://github.com/kingbri1/flash-attention/releases/download/v2.7.4.post1/flash_attn-2.7.4.post1+cu128torch2.7.0cxx11abiFALSE-cp310-cp310-linux_x86_64.whl

I hope it helps.