我使用的是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发布于 2020-06-22 20:14:52
根据PyTorch的网站,当从pip安装时,你必须指明你使用的是cpu还是CUDA的版本。
例如,如果我想在没有CUDA1.5.1版本的PyTorch的Linux系统上安装,我会运行:
pip install torch==1.5.1+cpu torchvision==0.6.1+cpu -f https://download.pytorch.org/whl/torch_stable.html您可以使用上面提供的链接获取特定环境的语法。
https://stackoverflow.com/questions/62513412
复制相似问题