Issues installing PyTorch 1.4 - quot;No matching distribution found for torch===1.4.0quot;(安装 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 匹配的发行版";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:安装 PyTorch 1.4 的问题 - “找不到与 torch===1.4.0 匹


基础教程推荐
- 求两个直方图的卷积 2022-01-01
- Plotly:如何设置绘图图形的样式,使其不显示缺失日期的间隙? 2022-01-01
- 包装空间模型 2022-01-01
- 无法导入 Pytorch [WinError 126] 找不到指定的模块 2022-01-01
- PermissionError: pip 从 8.1.1 升级到 8.1.2 2022-01-01
- 使用大型矩阵时禁止 Pycharm 输出中的自动换行符 2022-01-01
- 修改列表中的数据帧不起作用 2022-01-01
- 在同一图形上绘制Bokeh的烛台和音量条 2022-01-01
- PANDA VALUE_COUNTS包含GROUP BY之前的所有值 2022-01-01
- 在Python中从Azure BLOB存储中读取文件 2022-01-01