Cannot import name 'artist' from 'matplotlib' (Python)
Ended up deleting Python\Python39\site-packages\matplotlib_init_.py and it worked itself out.
I also deleted files that started with ~ (ex: ~matplotlib).
I recently updated matplotlib and now I am consistently getting an error when I write from matplotlib import pyplot as plt.
ImportError: cannot import name 'artist' from 'matplotlib' (C:\Users\nenze\AppData\Roaming\Python\Python39\site-packages\matplotlib\__init__.py)
I've tried uninstalling and reinstalling matplotlib which didn't solve anything. I even tried to downgrade to an older version but I am still getting the same error.
This is with matplotlib version 3.5.1. This is with Python version 3.9.7. This is through Jupyter Notebooks.