安装pycocotools库踩坑 ERROR: Failed building wheel for pycocotools

安装pycocotools库踩坑

报错:

ERROR: Failed building wheel for pycocotools
subprocess-exited-with-error
legacy-install-failure
Encountered error while trying to install package.
╰─> pycocotools
在这里插入图片描述

解决方法

输入:

pip install pycocotools-windows -i https://pypi.tuna.tsinghua.edu.cn/simple

在这里插入图片描述
成功!!!