When I try to import matplotlib I get an error
Traceback (most recent call last): File \"\", line 1, in File \"/usr/local/lib
Also meet this issue on Ubuntu 16. Uninstall & reinstall not work for me.
My solution is reinstall from apt.
pip uninstall matplotlib sudo apt-get autoremove python-matplotlib sudo apt-get install python-matplotlib