安装前提:已安装好anaconda 环境(这里使用windows)
1、第一步打开pytorch 官网
2、根据上述的命令进行安装
3、看到橙色的选项卡进行先择,选择适合本电脑或者服务的命令。(如图:我选择标准版本)
4、可能安装的速度上存在问题,可以采用清华镜像:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple torch torchvision torchaudio
5、测试是否已经安装成功.
Tensors — PyTorch Tutorials 1.11.0+cu102 documentation