适合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
版权声明:本文为qq_27093891原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。