Using PySide2 on Raspberry with matplotlib fails

If I try to

from matplotlib.backends.backend_qtagg import FigureCanvasQTAgg

I get a failure of import not found. No module named 'matplotlib.backends.backend_qtagg

I am using Python3 OS Buster.

Any help?

hi sorry for the delay, did you ever get this working?

No, I gave up using Matplotlib.

If you installed Matplotlib from the system package manager, Buster appears to have mpl 3.0.2. 3.0.2 is ~5 years old and predates our support of Qt6 and the merger of the qt backend support into backend_qtagg.

Matplotlib: Python plotting — Matplotlib 3.0.2 documentation is the documentation you want to be looking at if you are using that version.