Article directory
Solution
1) Install Microsoft C++ Build Tools first
Download address: https://visualstudio.microsoft.com/visual-cpp-build-tools/
2) First open a command prompt and run (open terminal)
git clone https://github.com/pdollar/coco.git
3) Then move to this directory (then enter into the directory)
cd coco/PythonAPI
4) And then edit the setup.py file in the coco/PythonAPI directory from this(修改setup.py文件)
Modify the following code: (delete two)
extra_compile_args=[‘-Wno-cpp’, ‘-Wno-unused-function’, ‘-std=c99’],
to this
extra_compile_args=[‘-std=c99’],
5) then save
And then in the coco/PythonAPI directory, run
python setup.py install
Question two:
error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools”: https://visualstudio.microsoft.com/visual-cpp-build-tools/