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