- open the website: https://pytorch.org/
- Select the suitable version
- Open the anaconda powershell prompt
如果在anaconda里安装则选择Conda,windows的cmd安装则选择pip,可参考:
https://pytorch.panchuang.net/FirstSection/InstallIutorial/ - Paste and run the command:
conda install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia
- 检查是否安装完毕
Python使用GPU高速运算教程(1)–安装Pytorch
发布于 2023-06-19 796 次阅读
Comments NOTHING