首页 > 技术文章 > pytorch安装

starmon 2021-12-01 16:40 原文

PyTorch安装

环境:python3.10

根据 Start Locally | PyTorch 安装
image

报错:

ERROR: Could not find a version that satisfies the requirement torch (from versions: none)
ERROR: No matching distribution found for torch

更新pip,之后尝试用镜像,都不行。考虑版本问题:mirrors / pytorch / vision · CODE CHINA (gitcode.net)。根据查看,目前还不支持python3.10,故选择回退版本。

再次尝试OK了。

推荐阅读