Problem

ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out.

Solution

$ pip install matplotlib -i https://pypi.douban.com/simple

Reference