具体不清楚,反正pip下载也下载不了,改为pycocotools后没问题了 解决 分析 是承接之前错误,为了解决keyerror问题,pip install -v -e .重新安装mmdet,导致的 先下载低版本的cpython 参考 再安装aitodpycocotools 指令: pip install "git+https://github.com/jwwangchn/cocoapi-aitod.git#subdirectory=aitodpycocotools"