Skip to content Skip to sidebar Skip to footer

Import Matplotlib.pyplot As Plt Fails With Error About Python-tk

I tried to import matplotlib.pyplot, however received an error relating to python-tk not being installed. It appears to be installed but I still appear to be receiving the error. A

Solution 1:

No such file or directory, please install the python-tk package

Install the package using:

sudo apt-get install python-tk

Solution 2:

As a temporary arrangement just do

mv libBLT.2.4.so.8.6 libBLT.2.4.so.8.5

under /usr/lib/ . It should work fine again

Solution 3:

See debian bugreport: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751767 (as far as I know, matplotlib does not depend on "blt")

Post a Comment for "Import Matplotlib.pyplot As Plt Fails With Error About Python-tk"