Rpi Swap
18 Jul 2023
I had trouble pip installing matplotlib due to running out of memory on a 1 gigabyte RAM raspberry pi. The solution was to increase the swap.
Change the CONF_SWAP=100
to CONF_SWAP=2048
by editing /etc/dphys-swapfile
.
Run sudo /etc/init.d/dphys-swapfile restart
to restart swap with new size.