Mask_rcnn: ModuleNotFoundError: No module named 'pycocotools._mask

Created on 29 Mar 2019  路  8Comments  路  Source: matterport/Mask_RCNN

I have installed pycocotools with "pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI", however when I try to implement python model_main.py it gives me error of
ModuleNotFoundError: No module named 'pycocotools._mask'

I have also tried

git clone https://github.com/cocodataset/cocoapi
cd PythonAPI
python setup.py build_ext install

It gives error:

error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe' failed with exit status 2

I have installed C++ tools.

I have installed the pycocotools with cocoapi. Any kinds of help appreciated.

All 8 comments

same problem here :'(

I solved the issue by just using Anaconda.

i'm using anaconda too! can you explain more please ?!

You may find this tutorial useful :
https://www.youtube.com/watch?v=2TikTv6PWDw

thanks i'll try to do it
@olaurendin

the same problem :(

solved the problem by "sudo pip install cython"
then do make command

Lads,

The problem was because of Window 10 that couldn't see the path variable for C++, however, I have included that one as well.

As I have mentioned earlier, the problem has been solved using Anaconda and doing

pip install pycocotools

and then installing cocoAPI from the link I have provided.

I hope this one helps. Good luck.

Was this page helpful?
0 / 5 - 0 ratings