You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

启用GPU L4 x4的Kaggle Notebook中DeepSpeed安装失败求助

解决Kaggle GPU环境下DeepSpeed安装失败问题

方法1:切换国内PyPI源安装

Kaggle GPU环境下默认PyPI源可能出现网络解析异常,用国内镜像源可绕过DNS问题:

!pip install deepspeed -U -i https://pypi.tuna.tsinghua.edu.cn/simple

若仍有问题,尝试阿里云源:

!pip install deepspeed -U -i https://mirrors.aliyun.com/pypi/simple/

方法2:手动指定DNS服务器

修改系统DNS配置,解决临时解析失败问题:

!echo "nameserver 8.8.8.8" > /etc/resolv.conf
!pip install deepspeed -U

方法3:从GitHub源码编译安装

若上述方法无效,直接拉取源码编译安装,避开PyPI源依赖:

!git clone https://github.com/microsoft/DeepSpeed.git
%cd DeepSpeed
!pip install -e . --no-build-isolation

额外注意事项

  • Kaggle GPU环境启动后,等待1-2分钟让网络环境完全初始化,再执行安装命令
  • 确认Notebook右侧设置面板中的「Internet」选项已开启

内容的提问来源于stack exchange,提问作者Nazir

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.13 19:44:50