first add pypy and its scripts folder to path! then use the following code in terminal: pypy3 -m pip install matplotlib do not worry if it looked stuck at the end.