ERROR: Failed building wheel for Pillow

If you’re creating a debugging post, please include the following info:

  1. Share the link to the public app (deployed on Community Cloud). -
  2. Share the link to your app’s public GitHub repository (including a requirements file).
    -GitHub - jogsaurabh/autoaudit: audit automation
  3. Share the full text of the error message (not a screenshot).-
note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for Pillow
  Building wheel for python-docx (pyproject.toml): started
  Building wheel for python-docx (pyproject.toml): finished with status 'done'
  Created wheel for python-docx: filename=python_docx-0.8.11-py3-none-any.whl size=184488 sha256=b9c539a4e3d4595b20f92cc32b7cbfd4524303646e4c8f9d044b2d6adcf08461
  Stored in directory: /tmp/pip-ephem-wheel-cache-d5acqm4e/wheels/e2/80/66/f9d57f4033ea18bb41c55f2379badd1da48e128c131efe39b5
  Building wheel for validators (pyproject.toml): started
  Building wheel for validators (pyproject.toml): finished with status 'done'
  Created wheel for validators: filename=validators-0.20.0-py3-none-any.whl size=19574 sha256=39224f875e21f17b3707df9ef14274c349a75190ec32ff46d9b635d44eb37caa
  Stored in directory: /tmp/pip-ephem-wheel-cache-d5acqm4e/wheels/97/ff/db/8c9971b2816ce633c00d05bf0178b77f9315ba2284f2607857
Successfully built python-docx validators
Failed to build Pillow
ERROR: Could not build wheels for Pillow, which is required to install pyproject.toml-based projects
Checking if Streamlit is installed

  1. Share the Streamlit and Python versions. Streamlit - 1.33.0 & python 3.12.3
  • remove libraries from the requirements file, you don’t actually use
  • use a lower python version e.g. 3.10. or 3.11.

Ok let me try, Thank you