When I try to upgrade my matplotlib using pip, it outputs:
Downloading/unpacking matplotlib from https://pypi.python
This worked for me:
python -m pip install -U pip setuptools python -m pip install matplotlib
For more details, follow : https://matplotlib.org/2.0.0/users/installing.html