Library not working for meme generator app

I’m trying Streamlit and moving code from local for the first time.

Initially I was having issues with importing libraries.

But after defining library versions, I’m running into these issues.

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pillow
Failed to build 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
[06:26:16] ❗️ installer returned a non-zero exit code
[06:26:16] ❗️ Error during processing dependencies! Please fix the error and push an update, or try restarting the app.
[06:27:53] ❗️ Streamlit server consistently failed status checks
[06:27:53] ❗️ Please fix the errors, push an update to the git repo, or reboot the app.

streamlit==1.23.1