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