pytorch をインストールしようと以下のコマンドを実行したら最後の方に「Killed」というメッセージが表示され処理が失敗しました。
症状
$ pip install torch
Collecting torch
Downloading torch-1.7.1-cp38-cp38-manylinux1_x86_64.whl (776.8 MB)
|████████████████████████████████| 776.8 MB 42.7 MB/s eta 0:00:01Killed
回避策
自分の場合は、no-cache-dirオプションを指定することで問題を回避することができました。
$ pip --no-cache-dir install torch
Collecting torch
Downloading torch-1.7.1-cp38-cp38-manylinux1_x86_64.whl (776.8 MB)
|████████████████████████████████| 776.8 MB 6.7 MB/s
Requirement already satisfied: typing-extensions in /opt/conda/lib/python3.8/site-packages (from torch) (3.7.4.2)
Requirement already satisfied: numpy in /opt/conda/lib/python3.8/site-packages (from torch) (1.18.5)
Installing collected packages: torch
Successfully installed torch-1.7.1同じことで、いつも悩むので。。。( ..)φメモメモ