Error installing fastai using pip3

Hello all,
I tried installing fastai using pip3 but the process was terminated after downloading pytorch. The following screenshots highlight the problem.


Please help me. I have tried this twice. Once on ubuntu 18.04 and now on ubuntu mate 20.04, but got the same error.
P.S My machine froze for around 25min after which the process was killed.
Thank you.

Okay, I figured it out. My RAM size was 2GB, on adding another 6GB solved the installation.
Hope this helps anyone else who encounters this issue.