0

I am working on Pycharm with Python 3.10, with matplotlib and pandas packages installed, and when I run :

import pandas as pd
import numpy as np
ts = pd.Series(np.random.randn(1000), index = pd.date_range('1/1/2000', periods = 1000))
ts = ts.cumsum()
ts.plot()

I get the error ImportError: matplotlib is required for plotting when the default backend "matplotlib" is selected. I tried to uninstall and reinstall matplotlib after pandas, I tried to run conda install -c anaconda pandas-profiling, and many things I found online to try solving this.

Thanks a lot for your answers

Clarisse
  • 1
  • 1
  • Does this posts help ? https://stackoverflow.com/a/69002430/19603419, https://stackoverflow.com/a/53093682/19603419 or https://stackoverflow.com/a/52705465/19603419 ? – Timeless Sep 16 '22 at 09:45

0 Answers0