I recently shifted to a new laptop. After installing Ubuntu 14.04 LTS and all of the packages that my previous system contained, I copied all my files from my old system to
This is the solution, worked for me:
sudo rm -rf $HOME/.cache/matplotlib
Thanks to aberaud commented on Jul 14, 2015
I had the issue, fixed it by deleting $HOME/.cache/matplotlib that happened to be owned by root.