如何安装旧版本的pytorch [英] How to install older version of pytorch

查看:95
本文介绍了如何安装旧版本的pytorch的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

按照这个https://pytorch.org/get-started/previous-versions/#via-pip

pip install torch==0.2.0_4 -f https://download.pytorch.org/whl/cpu/stable收集火炬==0.2.0_4找不到满足要求的版本 torch==0.2.0_4(来自版本:0.1.2、0.1.2.post1、0.3.1、0.4.0、0.4.1、1.0.0、1.0.1、1.0.1.post2, 1.1.0)找不到与 torch==0.2.0_4 匹配的分布

如何安装旧版本的pytorch?

解决方案

pip install torch==收集火炬==

<块引用>

错误:找不到满足要求的版本 torch==(来自版本:0.1.2、0.1.2.post1、0.4.1、1.0.0、1.0.1、1.0.1.post2、1.1.0)错误:找不到与火炬匹配的分布==

这意味着0.2版本不可用

您可以下载特定版本(wheels 似乎可用)并安装它使用 pip install

Following this https://pytorch.org/get-started/previous-versions/#via-pip

pip install torch==0.2.0_4 -f https://download.pytorch.org/whl/cpu/stable
Collecting torch==0.2.0_4
  Could not find a version that satisfies the requirement torch==0.2.0_4 (from versions: 0.1.2, 0.1.2.post1, 0.3.1, 0.4.0, 0.4.1, 1.0.0, 1.0.1, 1.0.1.post2, 1.1.0)
No matching distribution found for torch==0.2.0_4

How to install older version of pytorch?

解决方案

pip install torch==

Collecting torch==

ERROR: Could not find a version that satisfies the requirement torch== (from versions: 0.1.2, 0.1.2.post1, 0.4.1, 1.0.0, 1.0.1, 1.0.1.post2, 1.1.0) ERROR: No matching distribution found for torch==

This means that version 0.2 is not available

You can download the specific version (wheels seem available) and install it with pip install

这篇关于如何安装旧版本的pytorch的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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