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

Preface: When configuring the YOLOv5 environment, it is possible that when downloading the package with pip install -r requirements.txt, an error will be reported when "building wheels" for the pycocotools package: ERROR: Could not build wheels for pycocotools, which is required to install pyproject.toml-based projects. . Some people on the Internet said that it can be downloaded successfully after installing visualc++6.

The final solution is as follows:

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

Guess you like

Origin blog.csdn.net/weixin_53206200/article/details/127982228