Windows > x86_64 > exe (local)
打开 PowerShell 或 CMD,运行以下命令:
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
在PowerShell,输入“py -版本号”(如果是3.10,则py -3.10)打开Python,随后输入下列代码
import torch print(torch.cuda.is_available()) print(torch.cuda.get_device_name(0))
如果一切正常,会输出 True 和你的显卡名称。
立即下载 CUDA Toolkit 11.8