[英]cannot install pip install torchvision
I am using python 3.8.3 version, I tried to install torchvision and torch module and faced this error, none of them are installed.我正在使用 python 3.8.3 版本,我尝试安装 torchvision 和 torch 模块并遇到此错误,它们都没有安装。 The error comes as 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: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
According to PyTorch 's website, you must specify if you are using cpu or the version of CUDA when installing from pip
.根据PyTorch的网站,从pip
安装时,必须指定您使用的是 cpu 还是 CUDA 的版本。
For instance, if I wanted to install on a Linux system without CUDA, version 1.5.1 of PyTorch, I would run:例如,如果我想在没有 CUDA 的 Linux 系统上安装 PyTorch 版本 1.5.1,我将运行:
pip install torch==1.5.1+cpu torchvision==0.6.1+cpu -f https://download.pytorch.org/whl/torch_stable.html
You can use the link I provided above to get the syntax for your specific environment.您可以使用我上面提供的链接来获取特定环境的语法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.