I have resolved this issue!!
I’ll record the command I typed for reference.
I use PyTorch1.11.0 so torchvision specified 0.12.0. This is the rule.
git clone --recursive --branch v0.12.0 https://github.com/pytorch/vision --depth 1
cd vision
python3 setup.py install --user
pip3 uninstall torch torchvision
sudo pip3 install torch-1.11.0-cp38-cp38-linux_aarch64.whl
pip3 list
I got YOLOv5 working. It’s working as expected.