Deployment issue (pillow)

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

this is my requirements.txt
streamlit == 1.26.0
transformers == 4.41.0
sentencepiece == 0.2.0
torch == 2.3.0
streamlit-keyup == 0.2.4

Use a more recent streamlit or an older python.