When importing matplotlib by import matplotlib.pyplot as plt I'm getting the following error:
Traceback (most recent call last): File "mode.py", line 1, in <module>
import matplotlib.pyplot as plt File "C:\Users\yuhan\AppData\Roaming\Python\Python36\site-packages\matplotlib\pyplot.py", line 32, in <module>
import matplotlib.colorbar File "C:\Users\yuhan\AppData\Roaming\Python\Python36\site-packages\matplotlib\colorbar.py", line 32, in <module>
import matplotlib.artist as martist File "C:\Users\yuhan\AppData\Roaming\Python\Python36\site-packages\matplotlib\artist.py", line 16, in <module>
from .path import Path File "C:\Users\yuhan\AppData\Roaming\Python\Python36\site-packages\matplotlib\path.py", line 25, in <module>
from . import _path, rcParams ImportError: cannot import name '_path'
I tried reinstalling the whole matplotlib library, tried re-installing Python 3.6 etc. I really do not know what is wrong and since I don't have a backup.
py -m pip uninstall matplotliband thenpy -m pip install matplotlib