subprocess.CalledProcessError: Command ‘pip install ‘pycocotools>=2.0‘‘ returned non-zero exit statu

前言:在配置YOLOv5的环境的时候可能,在用pip install -r requirements.txt下载包的时候会遇到为pycocotools这个包“造轮子”的时候报错:ERROR: Could not build wheels for pycocotools, which is required to install pyproject.toml-based projects。。网上有人说是安装了visualc++6就可以下载成功,真的是骗死人,本人亲测没什么用。

最终的解决方案如下:

# 打开conda的终端,并激活虚拟环境,
conda install -c conda-forge pycocotools

猜你喜欢

转载自blog.csdn.net/weixin_53206200/article/details/127982228
今日推荐