python下载pytorch

it2026-06-06  6

anaconda3+python3.7

建议直接官网pip下载搞个镜像加速就OK了很快不用啥啥啥的,当你直接安装后运行可能会发现找不到【指定模块】其中的一个原因。

python 3.7的只能安装torch1.5 和torchvision0.6。你安装的版本太高了(狗血吧)

pyturch离线下载包https://download.pytorch.org/whl/torch_stable.html

pip下载(其他的修改版本就好) pip install torch1.5.0+cpu torchvision0.6.0+cpu -f https://download.pytorch.org/whl/torch_stable.html

pip镜像加速 在 C:\Users\用户 中创建pip文件夹,在pip文件夹中创建pip.ini文件 复制下面这段话 [global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple [install] trusted-host=mirrors.aliyun.com

最新回复(0)