ERROR: torch has an invalid wheel, .dist-info directory not found

适合Py3.7
如果您不需要 CUDA 安装

pip install torch==1.7.0+cpu torchvision==0.8.1+cpu torchaudio===0.7.0 -f https://download.pytorch.org/whl/torch_stable.html

阿里云更快:

pip install torch==1.7.0+cpu torchvision==0.8.1+cpu torchaudio===0.7.0 -i http://mirrors.aliyun.com/pypi/simple/  --trusted-host mirrors.aliyun.com

如果您需要安装 CUDA

pip install torch==1.7.0 torchvision==0.8.1 torchaudio==0.7.0 -f https://download.pytorch.org/whl/torch_stable.html

阿里云更快:

pip install torch==1.7.0 torchvision==0.8.1 torchaudio==0.7.0 -i http://mirrors.aliyun.com/pypi/simple/  --trusted-host mirrors.aliyun.com

原链接:https://stackoverflow.com/questions/65191751/error-torch-has-an-invalid-wheel-dist-info-directory-not-found

你可能感兴趣的:(Error,python)