InternNav 环境配置:Failed to build flash_attn解决办法

python 复制代码
# create a new isolated environment for model server
conda create -n <internnav> python=3.10 libxcb=1.14
conda activate <internnav>

# install PyTorch (CUDA 11.8)
pip install torch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 \
    --index-url https://download.pytorch.org/whl/cu118

# install InternNav with model dependencies
pip install -e .[model] --no-build-isolation
python 复制代码
running bdist_wheel
      Guessing wheel URL:  https://github.com/Dao-AILab/flash-attention/releases/download/v2.7.2.post1/flash_attn-2.7.2.post1+cu11torch2.5cxx11abiFALSE-cp310-cp310-linux_x86_64.whl
      error: Remote end closed connection without response
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for flash_attn
Successfully built internnav depth-camera-filtering
Failed to build flash_attn

install Internnav 的时候一直报flash_attn的错

解决办法:

python 复制代码
wget https://github.com/Dao-AILab/flash-attention/releases/download/v2.7.2.post1/flash_attn-2.7.2.post1+cu11torch2.5cxx11abiFALSE-cp310-cp310-linux_x86_64.whl
python 复制代码
pip install flash_attn-2.7.2.post1+cu11torch2.5cxx11abiFALSE-cp310-cp310-linux_x86_64.whl --no-build-isolation
相关推荐
科技小花15 小时前
全球化深水区,数据治理成为企业出海 “核心竞争力”
大数据·数据库·人工智能·数据治理·数据中台·全球化
zhuiyisuifeng16 小时前
2026前瞻:GPTimage2镜像官网或将颠覆视觉创作
人工智能·gpt
徐健峰16 小时前
GPT-image-2 热门玩法实战(一):AI 看手相 — 一张手掌照片生成专业手相分析图
人工智能·gpt
weixin_3709763516 小时前
AI的终极赛跑:进入AGI,还是泡沫破灭?
大数据·人工智能·agi
Slow菜鸟16 小时前
AI学习篇(五) | awesome-design-md 使用说明
人工智能·学习
冬奇Lab17 小时前
RAG 系列(五):Embedding 模型——语义理解的核心
人工智能·llm·aigc
深小乐17 小时前
AI 周刊【2026.04.27-05.03】:Anthropic 9000亿美元估值、英伟达死磕智能体、中央重磅定调AI
人工智能
码点滴17 小时前
什么时候用 DeepSeek V4,而不是 GPT-5/Claude/Gemini?
人工智能·gpt·架构·大模型·deepseek
狐狐生风17 小时前
LangChain 向量存储:Chroma、FAISS
人工智能·python·学习·langchain·faiss·agentai
波动几何17 小时前
CDA架构代码工坊技能cda-code-lab
人工智能