安装PyTorch 1.4时出现问题-“找不到与Torch === 1.4.0匹配的发行版" [英] Issues installing PyTorch 1.4 - "No matching distribution found for torch===1.4.0"

查看:5767
本文介绍了安装PyTorch 1.4时出现问题-“找不到与Torch === 1.4.0匹配的发行版"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用了pytorch.org上的安装指南来了解如何安装它,我正在使用的命令是

Used the install guide on pytorch.org on how to install it and the command I'm using is

pip install torch===1.4.0 torchvision===0.5.0 -f https://download.pytorch.org/whl/torch_stable.html

但是出现了这个错误;

But it's coming up with this error;

错误:找不到满足torch === 1.4.0要求的版本(来自版本: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)

错误:找不到与torch === 1.4.0匹配的分布

ERROR: No matching distribution found for torch===1.4.0

这甚至是与我相关的问题吗?其他人可以使用此命令吗?

Is this even a me-related issue? Can other people use this command?

Pip已安装并且可用于其他模块(Python 3.8,CUDA版本10.1,Windows 10 Home 2004)

Pip is installed and works for other modules, Python 3.8, CUDA version 10.1, Windows 10 Home 2004

推荐答案

此问题看起来与虚拟环境有关.您是否在另一/新的虚拟环境中尝试了推荐的安装线?如果没有帮助,则可能的解决方案可能是使用直接链接到PyTorch的软件包安装软件包,并且TorchVision为您的系统构建:

Looks like this issue is related to virtual environment. Did you try recommended installation line in another/new one virtual environment? If it doesn't help the possible solution might be installing package using direct link to PyTorch and TorchVision builds for your system:

pip install https://download.pytorch.org/whl/cu101/torch-1.4.0-cp38-cp38-win_amd64.whl

pip install https://download.pytorch.org/whl/cu101/torchvision-0.5.0-cp38-cp38-win_amd64.whl

这篇关于安装PyTorch 1.4时出现问题-“找不到与Torch === 1.4.0匹配的发行版"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆