[Solved] Why did push of a Flask app to Heroku failed?


The error message says it all:

xlwings requires an installation of Excel and therefore only works on Windows and macOS. To enable the installation on Linux nevertheless, do: export INSTALL_ON_LINUX=1; pip install xlwings

You might be using a package in your app named xlwings which is built to be used on Windows and Mac but the servers on Heroku have linux installed on them so you’ll first have to set an environment variable INSTALL_ON_LINUX to 1 then try to deploy the app again.

From the Heroku CLI you can do:

heroku config:set INSTALL_ON_LINUX=1 

1

solved Why did push of a Flask app to Heroku failed?