当前位置: 代码迷 >> 综合 >> ModuleNotFoundError: No module named ‘pycocotools‘
  详细解决方案

ModuleNotFoundError: No module named ‘pycocotools‘

热度:11   发布时间:2024-02-11 02:25:20.0

ModuleNotFoundError: No module named ‘pycocotools’,

用labelme2coco.py制作coco数据集,出现

Traceback (most recent call last):File "utils/labelme2coco.py", line 14, in <module>import pycocotools.mask
ModuleNotFoundError: No module named 'pycocotools'

在windows10下终端中labelme虚拟环境下运行

pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI

报错:
xian在这里插入图片描述再安装:

pip install cython
pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI

二级目录

三级目录

  相关解决方案