Matplotlib Errors: module 'matplotlib.cm'

Hey,
I am getting these errors with I try and use Matplotlib or Seaborn. I am using Python 3.12.3.

[1582](file:///C:/Users/Owner/miniconda3/envs/py_cyclistic/Lib/site-packages/seaborn/cm.py:1582) mpl_cm.register_cmap(_name, _cmap) [1583](file:///C:/Users/Owner/miniconda3/envs/py_cyclistic/Lib/site-packages/seaborn/cm.py:1583) mpl_cm.register_cmap(_name + “_r”, _cmap_r) [1585](file:///C:/Users/Owner/miniconda3/envs/py_cyclistic/Lib/site-packages/seaborn/cm.py:1585) del colors, mpl_cm AttributeError: module ‘matplotlib.cm’ has no attribute ‘register_cmap’

I’m assuming you’ve figured it out, but if not I just ran into the same issue setting up a new environment. Installing the latest package from conda forge fixed the problem for me. You can install using:

conda install seaborn -c conda-forge

Robert,
Thanks for your reply.
When I created a new project everything is working fine.