首页 > 解决方案 > 如何在树莓派4中安装pytorch和torchvision?

问题描述

我尝试在我的树莓派 pi4 模型 b 上使用 yolov5,但我在安装 pytorch 时遇到问题,我遵循了很多教程但没有解决问题,它显示了这个错误消息

requirements: torch>=1.7.0 not found and is required by YOLOv5, attempting auto-update...
ERROR: Could not find a version that satisfies the requirement torch>=1.7.0 (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
ERROR: No matching distribution found for torch>=1.7.0
requirements: Command 'pip install 'torch>=1.7.0'' returned non-zero exit status 1.
requirements: torchvision>=0.8.1 not found and is required by YOLOv5, attempting auto-update...
ERROR: Could not find a version that satisfies the requirement torchvision>=0.8.1 (from versions: 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.2.2, 0.2.2.post2, 0.2.2.post3)
ERROR: No matching distribution found for torchvision>=0.8.1
requirements: Command 'pip install 'torchvision>=0.8.1'' returned non-zero exit status 1.
YOLOv5 v5.0-372-g808bcad torch 1.7.0a0+e85d494 CPU

使用的python版本是3.8任何帮助将不胜感激

标签: python

解决方案


推荐阅读