zl程序教程

您现在的位置是:首页 >  其他

当前栏目

【Bug解决】Win10安装pycocotools报错

BUG安装win10 解决 报错
2023-09-14 09:15:11 时间

问题描述

在运行Yolov6时,需要导入pycocotools,于是采用pip install pcocotools进行安装,结果报错。
在这里插入图片描述

解决方案

报错原因提示也说的很明确: Microsoft Visual C++ 14.0 or greater is required.
即,电脑没有VC++ 编译环境,因此需要先装一个VS。

我下载的是VS2017社区版,安装时要注意勾选 针对C++的Windows XP支持、Windows 10 SDK等组件包。

安装之后执行:

pip install pycocotools-windows

成功安装:

在这里插入图片描述