killed during installation of torch

If you are running low on memory you could try with pip install package --no-cache-dir