文章目录
解决办法
1)先安装Microsoft C++ Build Tools
下载地址:https://visualstudio.microsoft.com/visual-cpp-build-tools/
2) First open a command prompt and run(打开终端)
git clone https://github.com/pdollar/coco.git
3) Then move to this directory(然后进入到 目录)
cd coco/PythonAPI
4) And then edit the setup.py file in the coco/PythonAPI directory from this(修改setup.py文件)
将下面的代码修改:(删除俩个)
extra_compile_args=[‘-Wno-cpp’, ‘-Wno-unused-function’, ‘-std=c99’],
to this
extra_compile_args=[‘-std=c99’],
5) then 保存
And then in the coco/PythonAPI directory, run
python setup.py install