ImportError: cannot import name 'mtext' from 'matplotlib.axes'

I was trying to follow the “getting-started” tutorial and encounter this error.
I think I have everything correctly installed and I didn’t touch any file in my site packages


antlr4-python3-runtime 4.9.3
colorama 0.4.6
commonroad-io 2024.1
commonroad-vehicle-models 3.0.2
contourpy 1.2.1
cycler 0.12.1
fonttools 4.51.0
iso3166 2.1.1
kiwisolver 1.4.5
lxml 5.2.2
matplotlib 3.9.0
networkx 3.3
numpy 1.26.4
omegaconf 2.3.0
packaging 24.0
pillow 10.3.0
pip 24.0
protobuf 3.20.2
pyparsing 3.1.2
python-dateutil 2.9.0.post0
PyYAML 6.0.1
Rtree 1.2.0
scipy 1.13.0
shapely 2.0.4
six 1.16.0
tqdm 4.66.4

How can I resolve this issue?

1 Like