From 77ef14fa1be7cc1ed3ebf139412b4c41266a18f0 Mon Sep 17 00:00:00 2001 From: Ellie Kang Date: Mon, 20 Jan 2020 10:01:26 +0900 Subject: [PATCH] prerequisite for pycocotools --- INSTALL.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/INSTALL.md b/INSTALL.md index 5a722fb..141a53c 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -37,8 +37,18 @@ Install the [COCO API](https://github.com/cocodataset/cocoapi): # COCOAPI=/path/to/clone/cocoapi git clone https://github.com/cocodataset/cocoapi.git $COCOAPI cd $COCOAPI/PythonAPI + +#pre install some requirements before install not to make error like 'pycocotools/_mask.c: No such file or directory ' +# pycocotools needs matplotlib, Cython in advance, so this installation process has to be in right order. +pip install Cython +python -m pip install matplotlib +pip install pycocotools + + # Install into global site-packages -make install +make install + + # Alternatively, if you do not have permissions or prefer # not to install the COCO API into global site-packages python2 setup.py install --user