Compiling Matplotlib with TkAgg and pip

less than 1 minute read

Normally we install precompiled Matplotlib via

conda install matplotlib

or

python -m pip install matplotlib

Build Matplotlib with Tk

If you need to install/upgrade Matplotlib via pip and need TkAgg:

apt install tk-dev libpng-dev libffi-dev dvipng texlive-latex-base

python -m pip install cairocffi

python -m pip install --upgrade matplotlib

Leave a comment