I was getting the same error on Fedora 18. I installed the matplotib package for Python 3 from the repository.
Installing the package python3-matplotlib-tk
got rid of this error for me on Fedora.
On Ubuntu, install the tk-dev
package, and install matplotlib again: python3 setup.py build
and python3 setup.py install
.
However, I soon ran into this one on Fedora: Python 3 and matplotlib lissue on Linux
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…