-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: failed to solve: process "/bin/sh -c pip install -r requirements.txt" did not complete successfully: exit code: 1 #422
Comments
=> ERROR [4/4] RUN pip install --no-cache-dir -r requirements.txt 63.7s
Dockerfile:42 | COPY . /app
|
You forgot to copy the requirements.txt file to your image: |
i am facing this problem too. |
Hello here, |
Can I know which base image you are using for building the container? |
检查一下你的txt文件,docker无法识别本地路径的引用,应该将它替换成具体的pypi版本号,感谢GPT的答复,这对我解决了我的类似问题; |
Thankyou davidaristotle2012 it worked |
This answer solve my questions. |
. |
I had a similar issue. I replaced |
I faced the same problem. This was my original docker code: I changed it to: FROM python:3.8-slim and now it builds smoothly without any errors. |
Dear All, Can someone please help to fix my issue. Error Message: ERROR: failed to solve: process "/bin/sh -c PIP install -r requirements.txt" did not complete successfully: exit code: 127 Docker File content: Requirement.txt content: When trying to build docker image getting below error:
|
I have also faced this error. It occurs when the version you have defined is out of the package context. For example : if the latest version of package transformers is 4.43.3 but you mistyped it as 4.443.3. In this case, the error will occur. So check the versions carefully before listing them into the requirements.txt file. |
Thanks Chetan. I checked my requirement.txt file, it has no specific version mentioned flask |
Issue still not solved. Error remains there although revision numbers not in requirements.txt. Any other idea how to resolve ? |
Make sure that you are in the right file and use this command : RUN pip install --no-cache-dir -r requirement.txt |
I am working on ML project, while creating a docker image i'm facing this error
The text was updated successfully, but these errors were encountered: