ImportError Cannot import name ‘warnings’ from ‘matplotlib.dates

Downgrade to matplotlib 3.2.2 until the bug in backtrader is fixed.

Here is the fix pull request: https://github.com/mementum/backtrader/pull/418.

pip uninstall matplotlib  # or conda
pip install matplotlib==3.2.2

Leave a Comment