ERROR: Could not find a version that satisfies the requirement torch==xxx+cuxxx解决方案

官网的链接:pip install torch==1.10.0+cu111 torchvision==0.11.0+cu111 torchaudio==0.10.0 -f https://download.pytorch.org/whl/torch_stable.html

一直下载失败--无法找到满足对torch的要求的版本以及找不到匹配的分发版本的错误。

解决方法:

使用 conda-forge 频道

Conda-forge 是一个社区维护的频道,里面有很多包可能解决你的依赖问题。我们可以尝试添加 conda-forge 频道来安装:

conda install pytorch==1.10.0 torchvision==0.11.0 torchaudio==0.10.0 cudatoolkit=11.1 -c pytorch -c conda-forge

你可能感兴趣的:(偶得之,深度学习,python,pytorch)