1. Download https://github.com/ultralytics/yolov5/tree/v5.0 and unzip it
2. Enter cmd in the folder
3. Activate the conda environment in cmd
4. Install the configuration file
pip install -r requirements.txt
The installation is complete
5.pycharm open detect.py to run and play
Method Two:
Direct anaconda prompt
There is a detailed video at station b [Python_YOLO simple tutorial] Getting started with YOLOv5 target detection in 20 minutes