安装torch时报错:Could not find a version that satisfies the requirement typing-extensions (from torch) (from versions: none)
解决办法
原命令:
pip install torch-1.13.1+cu116-cp39-cp39-win_amd64.whl
报错情况:

解决方法:
将原命令改为:
pip install torch-1.13.1+cu116-cp39-cp39-win_amd64.whl -f https://download.pytorch.org/whl/torch_stable.html
也就是在后面加上它的下载地址

问题解决!!!!
文章讲述了在安装Torch时遇到关于typing-extensions版本要求的错误,解决方案是修改pip命令,将原本的whl文件URL替换为PyTorch官方下载页面的链接。
1万+

被折叠的 条评论
为什么被折叠?



