鱼C论坛

 找回密码
 立即注册

安装SgLang失败的过程记录

已有 172 次阅读2025-3-4 11:56 |个人分类:LLM

想用SgLang本地部署DeepSeek V3,试着先在Win10安装SgLang。

在SgLang官网(https://docs.sglang.ai/start/install.html)找到安装命令:
pip install --upgrade pip

#使用清华镜像安装uv
pip install uv -i https://pypi.tuna.tsinghua.edu.cn/simple

#创建虚拟环境
uv venv

uv pip install "sglang[all]>=0.4.3.post2" --find-links https://flashinfer.ai/whl/cu124/torch2.5/flashinfer-python

但是到最后一步安装不了,提示错误:
  x No solution found when resolving dependencies:
  `-> Because sgl-kernel==0.0.3.post6 has no wheels with a matching platform tag (e.g., `win_amd64`) and only
      sgl-kernel<=0.0.3.post6 is available, we can conclude that sgl-kernel>=0.0.3.post6 cannot be used.
      And because sglang[all]==0.4.3.post2 depends on sgl-kernel>=0.0.3.post6, we can conclude that
      sglang[all]==0.4.3.post2 cannot be used.
      And because only sglang[all]<=0.4.3.post2 is available and you require sglang[all]>=0.4.3.post2, we can conclude
      that your requirements are unsatisfiable.

      hint: Wheels are available for `sgl-kernel` (v0.0.3.post6) on the following platform: `manylinux2014_x86_64`

错误原因无法安装0.4.3以上版本的sgl-kernel,需要在linux平台上安装。
使用pip install sgl-kernel --upgrade命令安装后发现win10平台只能安装到0.0.1版本。  

路过

鸡蛋

鲜花

握手

雷人

评论 (0 个评论)

facelist

您需要登录后才可以评论 登录 | 立即注册

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2025-4-4 12:01

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

返回顶部