我尝试用代码在win10中安装COCO API
git clone https://github.com/cocodataset/cocoapi.git
cd cocoapi/PythonAPI
make
cp -r pycocotools <path_to_tensorflow>/models/research/
在第3步中,我得到了一个错误:
'make' is not recognized as an internal or external command,
operable program or batch file.
我试着修复它,然后我遇到了一个问题,我没有path gnuwin32
什么是gnuwin32?以及如何修复错误"make“不被识别??
发布于 2019-10-24 12:54:34
“‘make”是一个可以在Linux上运行的程序。在windows上,你不能运行它。您必须使用Visual Studio或其他编译工具。
您正试图在自己的手中构建COCO API。但这对你来说可能太复杂了,特别是在Windows上。
我推荐使用pip安装COCO API。
通常,您可以像这样运行:
pip install pycocotools
但在Windows上,您可能会遇到一些错误。在这种情况下,您可以运行修改后的验证。
试试这个:
pip install git+https://github.com/philferriere/cocoapi.git#egg=pycocotools^&subdirectory=PythonAPI
如果安装成功,则无需自行构建COCO API。
我希望它能对你有所帮助。
https://stackoverflow.com/questions/58533933
复制相似问题