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
相关推荐
qcx237 分钟前
【系统学AI】23 AI 时代产品运营与获客全景:CRM SaaS 大变局 + 增长新范式(2026 调研报告)
人工智能·产品运营·产品设计·ai agent·ai native
叶修_A8 分钟前
【COZE-08】Prompt工程进阶 - 结构化输出与思维链
大数据·人工智能·prompt
John_ToDebug10 分钟前
开源与人性:DeepSeek 战略的底层逻辑
人工智能·经验分享·ai
老吴胡编12 分钟前
eknife 2026.05.28 v0.0.5 更新 —— 支持 PDF 文档合并
人工智能·嵌入式硬件·个人开发
OCR_1337162127513 分钟前
技术实测|2026三款主流OCR横向对比:SDK15、PaddleOCR、GLM-OCR选型指南
大数据·人工智能
深蓝电商API13 分钟前
当爬虫遇见大模型:AI驱动的智能数据采集新范式
人工智能·爬虫
陈天伟教授14 分钟前
图解人工智能(37)人工智能应用-车牌识别
人工智能·深度学习
Agent手记14 分钟前
电商智能客服的退换货自动处理流程如何配置?——2026企业级Agent全链路实战指南
人工智能·ai
wuhen_n16 分钟前
阿里云百炼平台 API 接入教程(附 Node.js + TypeScript 实战)
前端·人工智能·阿里云·ai编程
wuyuanshun16 分钟前
人工智能学习总结(一)
人工智能·学习