I recently installed Windows 11. Now, when I try to import matplotlib on my Jupyter Notebook, I get the error message below. Maybe it is not related to this, but when I was on Windows 10 everything was fine
ImportError Traceback (most recent call last)
in
----> 1 import matplotlib.pyplot as plt
~\AppData\Roaming\Python\Python37\site-packages\matplotlib_init_.py in
107 # cbook must import matplotlib only within function
108 # definitions, so it is safe to import from it here.
→ 109 from . import _api, _version, cbook, docstring, rcsetup
110 from matplotlib.cbook import MatplotlibDeprecationWarning, sanitize_sequence
111 from matplotlib.cbook import mplDeprecation # deprecated
~\AppData\Roaming\Python\Python37\site-packages\matplotlib\cbook_init_.py in
29
30 import matplotlib
—> 31 from matplotlib import _api, _c_internal_utils
32 from matplotlib._api.deprecation import (
33 MatplotlibDeprecationWarning, mplDeprecation)
ImportError: cannot import name 'c_internal_utils’ from ‘matplotlib’ (C:\Users\catel\AppData\Roaming\Python\Python37\site-packages\matplotlib_init.py)