cannot import name '_api' from 'matplotlib'

Posted by Lorie Orum on Friday, May 17, 2024

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