For python version 3.11.11
setuptools==78.1.0
upgrade in Environment (not just requirements.txt)
RUN pip install --upgrade pip setuptools
If caching is the issue clear pip caches: pip cache purge
pip cache purge