【Python】Python 3.11 无法安装 Pytorch ,提示找不到包

问题

Python 3.11 无法安装 Pytorch,在 pytorch 界面找到语句
在这里插入图片描述
cmd 中输入 pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu116
返回 Could not find a version that satisfies the requirement torch (大概是这个)

解决

我用的是 python 3.11 版本过高,换成 python3.6 就行了

效果

找到包

在这里插入图片描述
成功安装

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/m0_50939789/article/details/128600479