cannot import name '_api' from 'matplotlib'

Publish date: 2024-05-09

I'm facing the following error while trying to import the matplotlib(Windows10 OS). I have tried uninstalling and reinstalling the package. Nothing seems to be working. Can somebody help me enter image description here

1 Answer

According to the thread here: https://github.com/facebook/prophet/issues/1691 You might need to downgrade to the 3.1.3 version of mathplotlib for it to work.

ncG1vNJzZmirpJawrLvVnqmfpJ%2Bse6S7zGiorp2jqbawutJobXFwaW5%2BcX%2BOnJinpp%2Bpeqq5z6iprWWelrqmecCpoGaeoqS6brnAraelp6ShtqM%3D

ncG1vNJzZmibkqWyb7LRmmhnnJmctrWty6ianpmeqL2ir8SsZZynnWSworrNqKtmoZ2lvLPAjKeYpp1dlr2qecWrpqZlnZbBsbjOraOiml6dwa64