(已解决)安装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
可以通过直接下载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
下载python3.9试试
1.4、用anaconda环境试试?
本文来自博客园,作者:JaxonYe,转载请注明原文链接:https://www.cnblogs.com/yechangxin/articles/17011570.html
侵权必究