在PyTorch官网的获取页面上,选择你的操作系统、包管理器(pip或conda)、Python版本以及CUDA版本。页面会根据你的选择提供相应的安装命令。例如,如果你选择的是Linux系统、pip包管理器、Python 3.8和CUDA 11.3,你可能会看到如下的安装命令: bash pip install torch torchvision torchaudio --index-url https://download....