In Ubuntu, in early 2018, normal Ubuntu distributions (xenial / 16.04) do not have python3.6-tk , so even if you have earlier versions of python-tk this will not work.
My solution was to use install everything with python 3.5 :
sudo apt install python3.5-tk virtualenv --python='which python3.5' python-env source python-env/bin/activate pip install -r requirements.txt
And now matplotlib can find tkinter .
EDIT :
I just need 3.6 after all, and the trick was:
sudo apt install tk-dev
and then rebuild python3.6 after tk-dev , for example:
./configure make make install
Josh.F Jan 09 '18 at 0:44 2018-01-09 00:44
source share