python - 如何安装旧版本的pytorch

标签 python pip 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
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

如何安装老版本的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==

这意味着版本 0.2 不可用

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

关于python - 如何安装旧版本的pytorch,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56598674/

相关文章:

python - 如何在测试时将 Django/DRF 中的日期时间转换为字符串

python - 如何在同时具有 64 位和 32 位版本的情况下 pip 安装 64 位包?

python - 如何在没有pip的情况下安装python模块?

c++ - PyTorch C++ 前端向前返回多个张量

python - Flask 重定向上传的文件 - 对关闭的文件进行 I/O 操作

python - 在特定路径中的简单数据库表转储

python - 在Python中将不同的数据类型从XML加载到字典中

python - 无法在 EC2(CentOS)上安装 psycopg 3

python - 如何在Pytorch中形成一个连续的数字序列?

python - pyTorch 中的矩阵乘法