I am trying to build a docker image and it fails in the RUN pip install -r requirements_inference.txt The error message is 182.3 ERROR: Could not find a version that satisfies the requirement pytorch-lighning==1.2.10 (from versions:none) 128.3. ERROR: No matching distribution found for pytorch-lightning==1.2.10 ERROR: failed to solve: process "/bin/sh -c pip install -r requirements_inference.txt" did not complete succesfully: exit code: 1 However when I create a conda environment and activate it I can do the pip install of said version without problem What is the problem with docker ? EDIT 2: According to this question this might be related to the WIFI I use... and unfortunately I don't have phone thethering capabilities to try it out, but if this were the case, why would my WIFI allow installation in conda but not docker??? EDIT: I have been asked a minimal reproducible example. I dont think it exists but just in case this is what I am using Dockerfile FROM huggingface/transformers-pytorch-cpu:latest COPY ./ /app WORKDIR /app RUN pip install -r requirements_inference.txt ENV LC_ALL=C.UTF-8 ENV LANG=C.UTF-8 EXPOSE 8000 CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"] requirments_inference.txt pytorch-lightning==1.2.10 datasets==1.6.2 scikit-learn==0.24.2 hydra-core omegaconf hydra_colorlog onnxruntime fastapi uvicorn and instruction docker build -t inference:latest . Continue reading...