c1: Commend line error D8021 :invalid numeric argment ‘/Wno-cpp’

The above error

appears when installing pycocotools under


coco is a labeled image data set, which can be used for target detection, etc. Pycocotools is an API tool about coco


git clone https://github.com/pdollar/coco.git


cd coco/PythonAPI

python setup.py build_ext install

find coco/PythonAPI/setup.py (you can just use everything) and delete the parameters wno-cpp and wno-print-function.

Read More: