基于源码安装COCO API(win10)

环境: win10 + python3.6 + VS2017(社区版)

[step1]

https://github.com/cocodataset/cocoapi 下载COCO源码

[step2]

编辑 cocoapi-master\PythonAPI 下的setup.py文件

extra_compile_args=['-Wno-cpp', '-Wno-unused-function', '-std=c99']改为extra_compile_args=['-std=c99']

[step3] 

在cocoapi-master\PythonAPI下启动命令行,运行python .\setup.py install

转载于:https://www.cnblogs.com/bitsign/p/10666065.html

你可能感兴趣的:(基于源码安装COCO API(win10))