(已解决)安装pytorch时ERROR: Could not find a version that satisfies the requirement torch (from versions: none) ERROR: No matching distribution found for torch


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

可以通过直接下载whl文件解决,但是不清楚为什么会报错

1、解决过程

1.1、换清华源——没用

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

1.2、换了旧一点的python3.10.2和3.11.0,并且在虚拟环境下也试过了——没用

1.3、按照pytorch官网提示走,安装python3.9成功!!!

官网说windows的torch只支持到python3.7-python3.9
image
下载python3.9试试
image

1.4、用anaconda环境试试?

posted @ 2023-01-31 12:39  JaxonYe  阅读(9678)  评论(0编辑  收藏  举报