我正在使用python 3.8.3版本,尝试安装torchvision和torch模块并遇到此错误,均未安装。错误出现ERROR:could not find a version that satisfies the requirement torch==1.4.0(from versions:0.1.2,0.1.2,post1,0.1.2.post2)
Error:No matching distribution found for torch==1.4.0
根据PyTorch的网站,从中安装时,必须指定是使用cpu还是CUDA版本pip
。
例如,如果我想在没有CUDA(PyTorch的1.5.1版)的Linux系统上安装,我将运行:
pip install torch==1.5.1+cpu torchvision==0.6.1+cpu -f https://download.pytorch.org/whl/torch_stable.html
您可以使用我上面提供的链接来获取特定环境的语法。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句