解决pycocotools/_mask.c:646:10: fatal error: maskApi.h: No such file or directory

有人说要先安装Cython,但是我安装了Cython之后还是报这个错误,然后就换了一种安装思路

先去清华源镜像站https://opentuna.cn/pypi/web/simple/pycocotools/下载pycocotools-2.0.2.tar.gz

然后cd到pycocotools-2.0.2.tar.gz所在的目录执行pip install pycocotools-2.0.2.tar.gz

就成功了。

posted @ 2021-06-28 13:50  这梦想,不休不止  阅读(570)  评论(0编辑  收藏  举报