I have Windows 7.
For some reason, f2tfont.cpp does not compile when installing matplotlib (through pip), hence, the matplotlib install fails. Also, the
pip
You need to have Visual Studio c++ in Your System.
Install Visual Studio 2019 with c++ distributions .
It worked perfectly for me.