解决办法: 要对应自己的torch和cuda版本。 官网上有一个方便的工具,选择对应的各个版本号后,最后按照提示安装,就可以了。Installation — mmcv 2.1.0 documentation