Error deploying streamlit on Heroku but runs successfully on Localhost

Why do I get this sort of error when deploying streamlit on Heroku but I donā€™t encounter such error on my local host.

Is there a way to install the library matplotlib on Herokuā€¦?

Add a requirements file to install matplotlib and other packages

Ok. I will do just that