在安裝基於keras、tensorflow實現的Mark RCNN(https://github.com/matterport/Mask_RCNN),要運行其中的demo.ipynb時,需安裝pycocotools。
在windows下可能會出現以下錯誤:
cl : Command line error D8021 : invalid numeric argument '/Wno-cpp'
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Failed building wheel for pycocotools
解決辦法:
pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
即可安裝成功。