Failed to build Pillow

Hi, I am trying to deploy an app but I’m getting the following error:

 note: This error originates from a subprocess, and is likely not a problem with pip.
Failed to build Pillow
  ERROR: Failed building wheel for Pillow
ERROR: Could not build wheels for Pillow, which is required to install pyproject.toml-based projects

[notice] A new release of pip is available: 24.0 -> 24.2
[notice] To update, run: pip install --upgrade pip
Checking if Streamlit is installed

────────────────────────────────────────────────────────────────────────────────────────

[22:55:12] ❗️ installer returned a non-zero exit code
[22:55:12] ❗️ Error during processing dependencies! Please fix the error and push an update, or try restarting the app.
[22:56:50] ❗️ Streamlit server consistently failed status checks
[22:56:50] ❗️ Please fix the errors, push an update to the git repo, or reboot the app.

url of repo: GitHub - joseeordaz/chatgpt_app

I have tried directly adding pillow to requirements.txt and updating pip. Still, I am yet to find a solution. Thank you for your help

You’d better install a more recent pillow.