pytorch安装

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了。

posted @ 2021-12-01 16:40  piukaty  阅读(119)  评论(0编辑  收藏  举报