I tried to save a new file and found out that I run out of memory. After I deleted a few files, pip started working as normal.