正如标题所述,我正在尝试使用 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
有什么想法可能是什么问题吗?
尝试使用
更新 pip 本身pip install --upgrade pip
那么,
pip install torch==0.3.1
尝试这样做:
sudo apt-get update
那么,
pip install torch==0.3.1