想用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版本。