python - 如何在树莓派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任何帮助将不胜感激
解决方案
推荐阅读
- validation - ASP.NET MVC 自定义客户端模型验证(比较两个 int 值)与 ivalidatableobject
- javascript - 如何创建交错的新闻线程?
- asp.net - 多次调用 LoggerFactory.CreateLogger<...> 会创建一个新文件吗?
- java - 正则表达式验证配置
- javascript - 更改 Ckeditor 的 textarea 的默认字体大小
- java - Android效果波纹圆圈imageView
- python - 列表中出现频率最高的数字
- matlab - Matlab中16位示波器信号的8位噪声
- c# - 从wifi转换到cable时如何检测c#上的连接被禁用?
- python - Python glob.glob():在文件名的一部分上找到完全匹配