前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >pycocotools/_mask.c: No such file or directory 问题

pycocotools/_mask.c: No such file or directory 问题

作者头像
狼啸风云
修改2022-09-02 20:05:10
1.6K0
修改2022-09-02 20:05:10
举报

在官方的github的issue中大家讨论了这个问题:

https://github.com/cocodataset/cocoapi/issues/172

最全面的方案如下

  1. whether you have installed cython in the correct version. Namely you should install cython for python2/3 if you use python2/3
  2. whether you have downloaded the whole .zip file from this github project. Namely, you should download all the things here even though you only need PythonAPI
  3. whether you open Terminal and run "make" under the correct folder. The correct folder is the one that "Makefile" is located in
  4. whether you have already installed gcc in the correct version
  5. whether you have already installed python-dev in the correct version. Namely you should install python3-dev (you may try "sudo apt-get install python3-dev"), if you use python3.

一般就是

代码语言:javascript
复制
pip install cython

或者使用 python3来安装。但是我在使用的过程中尝试了所有的方法都不行,后来我把cocoapi的权限降到了可读可写,就能编译成功了。

代码语言:javascript
复制
sudo chmod -R 777 cocoapi
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2020-12-31 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档