MMCV官网有教程 需要和你的cuda、torch版本相对应 不知道版本可以直接在你的vscode里查看 新建个py文件:import torch;print(torch.version);print(torch.version.cuda) 安装成功