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
相关推荐
xd1855785552 分钟前
鸿蒙PC平台Flutter魔术教学应用开发实践:打造跨端沉浸式魔术学习体验
人工智能·学习·flutter·华为·harmonyos·鸿蒙
薛定猫AI3 分钟前
【技术干货】多模型AI编程代理实战:用Python统一接入Claude Opus 4.8
人工智能·python·ai编程
中微极客10 分钟前
2026年最高频AI Agent框架技术深度解析:从选型到实战
人工智能
程序猿DD12 分钟前
国内模型供应商缓存与可用性实测:谁更适合跑 Agent?
人工智能·缓存·agent
SoaringPigeon20 分钟前
世界动作模型(WAM)综述:从 VLA 到具身智能的下一前沿
人工智能·机器人·自动驾驶
草莓熊Lotso31 分钟前
【Redis 初阶】 从分布式演进背景到环境搭建全解析
数据库·人工智能·redis·分布式·缓存
小K讲AI营销33 分钟前
Anthropic发现AI的“内心独白空间“:Jacobian Lens技术详解与全局工作空间验证
人工智能
碧口科技42 分钟前
基金定投的证券化转型:浩亘资本证券践行长期资产配置路径
人工智能
SEONIB_Explorer1 小时前
跨境全模态内容自动化研究:Veonib AI 视频生成技术原理与跨境落地价值
人工智能·shopify·多模态内容生成·seonib·veonib·电商视频自动化
渡我白衣1 小时前
打印宏与socket模块设计
java·linux·开发语言·c++·ide·人工智能·eclipse