ERROR: Could not find a version that satisfies the requirement torch===1.2.0 ERROR: No matching dist

该问题为pytorch的版本与cuda支持的版本不匹配出生的报错。要注意对应cuda的版本,选择对应版本的命令安装。

# CUDA 10.2
conda install pytorch==1.8.0 torchvision==0.9.0 torchaudio==0.8.0 cudatoolkit=10.2 -c pytorch

# CUDA 11.1
conda install pytorch==1.8.0 torchvision==0.9.0 torchaudio==0.8.0 cudatoolkit=11.1 -c pytorch -c conda-forge

# CPU Only
conda install pytorch==1.8.0 torchvision==0.9.0 torchaudio==0.8.0 cpuonly -c pytorch

ERROR: Could not find a version that satisfies the requirement torch===1.2.0 ERROR: No matching dist_第1张图片
附赠版本选择指南:pytorch版本选择指南

你可能感兴趣的:(cuda)