import matplotlib.pyplot as plt fails with error about python-tk

后端 未结 3 1519
终归单人心
终归单人心 2021-01-21 08:03

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

相关标签:
3条回答
  • 2021-01-21 08:45

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

    Install the package using:

    sudo apt-get install python-tk
    
    0 讨论(0)
  • 2021-01-21 09:01

    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

    0 讨论(0)
  • 2021-01-21 09:01

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

    0 讨论(0)
提交回复
热议问题