While trying to run this example to test how matplotlib works with Tkinter, I am getting the error:
(env)fieldsofgold@fieldsofgold-VirtualBox:~/new$ python test.
Try following this scenario:
sudo apt-get update
sudo apt-get install tk tk-dev
sudo pip uninstall matplotlib
sudo pip install matplotlib
EDIT:
Try:
sudo pip uninstall matplotlib
sudo apt-get install python-matplotlib
EDIT2:
sudo apt-get install tk8.6-dev
sudo apt-get remove python-matplotlib
sudo apt-get install python-matplotlib