When I try to upgrade my matplotlib using pip, it outputs:
Downloading/unpacking matplotlib from https://pypi.python
Found this page while looking answer for fedora 24.
RPM solution is:
dnf install freetype-devel
This is a known bug that has been fixed (https://github.com/matplotlib/matplotlib/pull/3414) on master.
The bug is in the handling of searching for a freetype installation. If you install the Linux package freetype-dev, you will avoid this bug and be able to compile matplotlib
.
sudo apt-get install libfreetype6-dev
If you re running Ubuntu server 14.04 u should add this font dependency
sudo apt-get install libxft-dev
Source