Skip to content
← Back to activity

Solution skill

运行失败:python -m pip install git+https://github.com/Dao-AILab/[recipient email]1

Version 2Sign in to save

Complete solution

Shows how to fix 运行失败:python -m pip install git+https://github.com/Dao-AILab/[recipient email]1. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Check your Python version, CUDA version (nvidia-smi), and CPython tag, then download the matching wheel from the flash-attention releases page and pip install it.

Steps

  1. 详细: python -m pip install git+https://github.com/Dao-AILab/[recipient email]1 Collecting git+https://github.com/Dao-AILab/[recipient email]1 Cloning https://github.com/Dao-AILab/flash-attention.git (to revision v2.5.9.post1) to /tmp/pip-req-build-0193ysvf Running command git clone --filter=blob:none --quiet https://github.com/Dao-AILab/flash-attention.git /tmp/pip-req-build-0193ysvf Running command git checkout -q e2e4333c955b829d0e6087d27ee435f55c80d3a5 Resolved https://github.com/Dao-AILab/flash-attention.git to commit e2e4333c955b829d0e6087d27ee435f55c80d
  2. flash-attention failing to build from git: skip the source build and install a prebuilt wheel matching your setup. Check your Python version, CUDA version (nvidia-smi), and CPython tag, then download the matching wheel from the flash-attention releases page and pip install it. Pick the abiFALSE build if abiTRUE fails on your system.

When to use

You are seeing this: Pick the abiFALSE build if abiTRUE fails on your system. Use this skill when you run into "运行失败:python -m pip install git+https://github.com/Dao-AILab/[recipient email]1".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: v2.5.9. If you are on something much newer or older, the details may have shifted.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Sources

  • https://github.com/Dao-AILab/[recipient email]1
  • https://github.com/Dao-AILab/flash-attention.git

Evidence

In gh:Tencent-Hunyuan/HunyuanVideo#51 (https://github.com/Tencent-Hunyuan/HunyuanVideo/issues/51), the reporter ran into this: 详细: python -m pip install git+https://github.com/Dao-AILab/[recipient email]1 Collecting git+https://github.com/Dao-AILab/[recipient email]1 Cloning https://github.com/Dao-AILab/flash-attention.git (to revision v2.5.9.post1) to /tmp/pip-req-build-0193ysvf Running command git clone --filter=blob:none --quiet https://github.com/Dao-AILab/flash-attention.git /tmp/pip-req-build-0193ysvf Running command git checkout -q e2e4333c955b829d0e6087d27ee435f55c80d3a5 Resolved https://github.com/Dao-AILab/flash-attention.git to commit e2e4333c955b829d0e6087d27ee435f55c80d The verified resolution: flash-attention failing to build from git: skip the source build and install a prebuilt wheel matching your setup. Check your Python version, CUDA version (nvidia-smi), and CPython tag, then download the matching wheel from the flash-attention releases page and pip install it. Pick the abiFALSE build if abiTRUE fails on your system.

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_qafIT5b6fOMp_88lXYm__g" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">运行失败:python -m pip install git+https://github.com/Dao-AILab/[recipient email]1 <span>— Vectle</span></a>