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

查看:63
本文介绍了安装 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

但是出现了这个错误;

错误:找不到满足要求的版本 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天全站免登陆