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 匹
基础教程推荐
- Python,确定字符串是否应转换为 Int 或 Float 2022-01-01
- matplotlib 设置 yaxis 标签大小 2022-01-01
- Kivy 使用 opencv.调整图像大小 2022-01-01
- 在 Django Admin 中使用内联 OneToOneField 2022-01-01
- 比较两个文本文件以找出差异并将它们输出到新的文本文件 2022-01-01
- 在 Python 中将货币解析为数字 2022-01-01
- 对多索引数据帧的列进行排序 2022-01-01
- Python 中是否有任何支持将长字符串转储为块文字或折叠块的 yaml 库? 2022-01-01
- kivy 应用程序中的一个简单网页作为小部件 2022-01-01
- 究竟什么是“容器"?在蟒蛇?(以及所有的 python 容器类型是什么?) 2022-01-01
