简体   繁体   English

ModuleNotFoundError: No module named 'utils.coco_utils' utils' is not a package

[英]ModuleNotFoundError: No module named 'utils.coco_utils' utils' is not a package

I'm using Colab for the first time and trying to run a project and got this error.. i tried to我第一次使用 Colab 并尝试运行一个项目并收到此错误.. 我试图

!pip install utils.coco_utils

but got the same error但得到了同样的错误

ModuleNotFoundError: No module named 'utils.coco_utils'; 'utils' is not a package

It helped me to use coco_utils from vision/references/detection/ .它帮助我使用了vision/references/detection/中的coco_utils
Just copy it into folder with your.ipynb file and import as a module.只需将其与 your.ipynb 文件一起复制到文件夹中并作为模块导入即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM