1. 进入官网 https://pytorch.org 2. 点击get started 在started locally里面找到设置。 如下图: 找对对应自己的需求的配置。 3.打开CMD界面: 依次输入