Windows安装pycocotools
2018年12月22日
当我在windows尝试安装pycocotools
1 |
pip3 install pycocotools |
报错:cl: 命令行 error D8021 :无效的数值参数“/Wno-cpp”
百度搜了一圈没找到答案,听说:https://github.com/cocodataset/cocoapi的作者表示此pycocotools并不支持windows
解决办法如下:
有大神已经做好了windows版本的安装包:https://github.com/philferriere/cocoapi
安装git工具:https://git-scm.com/downloads
加入系统环境变量:
然后执行以下命令:
1 |
pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI |
命令执行后很长一段时间不动,假死状态,可能是网络问题
最后出现如下说明安装成功:
1 2 3 |
Successfully built pycocotools Installing collected packages: pycocotools Successfully installed pycocotools-2.0 |