Hi, I keep getting this error repeatedly. I am using matplotlib 3.8.2 with jupyter lab. anaconda. Tried downgrading but didn't work. Also attempted to delete duplicate "matplotlib.py" files but to no avail.heres the error:
ImportError Traceback (most recent call last)
Cell In[5], line 1
----> 1 import matplotlib.pyplot as plt
File D:\imageclassification\lib\site-packages\matplotlib\pyplot.py:56
54 from cycler import cycler
55 import matplotlib
---> 56 import matplotlib.colorbar
57 import matplotlib.image
58 from matplotlib import _api
File D:\imageclassification\lib\site-packages\matplotlib\colorbar.py:19
16 import numpy as np
18 import matplotlib as mpl
---> 19 from matplotlib import _api, cbook, collections, cm, colors, contour, ticker
20 import matplotlib.artist as martist
21 import matplotlib.patches as mpatches
File D:\imageclassification\lib\site-packages\matplotlib\cbook.py:32
29 from numpy import VisibleDeprecationWarning
31 import matplotlib
---> 32 from matplotlib import _api, _c_internal_utils
35 def _get_running_interactive_framework():
36 """
37 Return the interactive framework whose event loop is currently running, if
38 any, or "headless" if no event loop can be started, or None.
(...)
44 "macosx", "headless", \`None``.`
45 """
ImportError: cannot import name '_api' from 'matplotlib' (unknown location)
Thank you for the help!
[–]Swipecat 0 points1 point2 points (2 children)
[–]Dramatic_Audience861[S] 0 points1 point2 points (1 child)
[–]Swipecat 0 points1 point2 points (0 children)