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
This worked for me on Windows 10 (using the Anaconda prompt):
pip uninstall matplotlib pip install --upgrade matplotlib