windows安装pycocotools错误:cl : Command line error D8021 : invalid numeric argument ‘/Wno-cpp’

  • Post author:
  • Post category:其他


在安装基于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

即可安装成功。

转载于:https://www.cnblogs.com/zhengbiqing/p/11255323.html