[Python] Python doesn't see flash_attn as installed lib though it was installed successfully

Discussão em 'Python' iniciado por Stack, Abril 10, 2025.

  1. Stack

    Stack Membro Participativo

    There is no flash_attn whl on pypi
    Tar.gz only is available which needs MS Build Tools so I found whl built on github
    I downloaded and installed flash_attn-2.7.0.post2-cp310-cp310-win_amd64.whl. I use python 3.10 on windows.
    The lib was installed to virtual enviroment as "C:\venv310\Scripts\python.exe" -m pip install --no-index "C:\Users\PA\Downloads\flash_attn-2.7.0.post2-cp310-cp310-win_amd64.whl"
    Installation was successful and flash_attn appeared in C:\venv310\Lib\site-packages
    But when I do pip freeze there is no flash_attn in the list And when I try to run model that need flash_attn it also says ImportError: This modeling file requires the following packages that were not found in your environment: flash_attn. Run pip install flash_attn

    What was done wrong?

    Continue reading...

Compartilhe esta Página