无法使用 pip 在 Linux 盒子上安装 torch

问题描述 投票:0回答:2

正如标题所述,我正在尝试使用 pip 在 Linux 上安装 torch。 我运行命令

pip install torch==0.3.1

我得到以下输出:

Collecting torch==0.3.1
  Could not find a version that satisfies the requirement torch==0.3.1 (from versions: 0.1.2, 0.1.2.post1)
No matching distribution found for torch==0.3.1

有什么想法可能是什么问题吗?

python pip pytorch
2个回答
2
投票

尝试使用

更新 pip 本身
pip install --upgrade pip

那么,

pip install torch==0.3.1

1
投票

尝试这样做:

 sudo apt-get update

那么,

 pip install torch==0.3.1
© www.soinside.com 2019 - 2024. All rights reserved.