No matching distribution found for imutils

Hello Everyone,

My app was running without any issues but recently I made a text modification on st.text() and commit the changes, and suddenly it show it needs upgrade for streamlit so I added streamlit>=1.2.0 to the requirements.text file and the issue disappear. However, now I am receiving this build error. I need your support to understand the problem and if you have any suggested solution.

I am receiving the following build error for other packages as well: keras, Pillow, opencv-python-headless, tensorflow, and scipy. How do I know the required version for all these if this is the solution or is the problem related to something else?

Build error
The command '/bin/sh -c pip install -r requirements.txt' returned a non-zero code: 1
Build logs:

Step 1/29 : ARG PYTHON_VERSION
Step 2/29 : FROM python:${PYTHON_VERSION}
 ---> dd4ac8dff24c
Step 3/29 : RUN apt-get update && apt-get install -y git-lfs
 ---> Using cache
 ---> 57ce9c18d3d0
Step 4/29 : RUN git lfs install
 ---> Using cache
 ---> 9250568792d1
Step 5/29 : COPY packages.txt /root/packages.txt
 ---> Using cache
 ---> 753fe80a3eb1
Step 6/29 : RUN apt-get update && xargs -r -a /root/packages.txt apt-get install -y
 ---> Using cache
 ---> 888a0d44fa12
Step 7/29 : RUN useradd -m user
 ---> Using cache
 ---> 3d6ed634c8ec
Step 8/29 : USER user
 ---> Using cache
 ---> fab28ea2af78
Step 9/29 : ENV HOME /home/user
 ---> Using cache
 ---> 650dbb5984de
Step 10/29 : ENV PATH $HOME/.local/bin:$PATH
 ---> Using cache
 ---> 92462bb9532d
Step 11/29 : WORKDIR $HOME
 ---> Using cache
 ---> e2dc7a6b81e3
Step 12/29 : RUN mkdir app
 ---> Using cache
 ---> 3390472a563d
Step 13/29 : WORKDIR $HOME/app
 ---> Using cache
 ---> 27c4b10049c2
Step 14/29 : ARG PIP_VERSION=22.0.2
 ---> Using cache
 ---> 29efe2f5e446
Step 15/29 : RUN pip install pip==${PIP_VERSION}
 ---> Using cache
 ---> 2cfb6ba84ca6
Step 16/29 : RUN pip install         datasets         huggingface-hub
 ---> Using cache
 ---> 30cba112ceb7
Step 17/29 : COPY requirements.txt $HOME/app/requirements.txt
 ---> Using cache
 ---> 2046011382fd
Step 18/29 : RUN pip install -r requirements.txt
 ---> Running in c10da7b8b105
Defaulting to user installation because normal site-packages is not writeable
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fcd6109d3a0>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/imutils/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fcd6109d640>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/imutils/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fcd6109d850>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/imutils/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fcd6109d9d0>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/imutils/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fcd6109db20>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/imutils/
ERROR: Could not find a version that satisfies the requirement imutils (from versions: none)
ERROR: No matching distribution found for imutils
Removing intermediate container c10da7b8b105

also this one, what should I do to fix this as well?

ERROR: Could not find a version that satisfies the requirement pip==22.0.2 (from versions: none)
ERROR: No matching distribution found for pip==22.0.2