Skip to content
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

The command '/bin/sh -c pip install --no-cache-dir --requirement /app/requirements.txt' returned a non-zero code: 1 #15

Closed
ekagravarma opened this issue Nov 25, 2022 · 3 comments

Comments

@ekagravarma
Copy link

hi, I was going through the tutorial. I created a dockerFile and while building the image of dockerfile. It was unable to install requirement. I removed the particular software name (eg. apturl==0.5.2) from Dockerfile so that the requirement file gets installed but the image was again not built showing same error ( non-zero code: 1) with different software version.
I have atttached my dockerfile and requirement.txt for your [convinience])

Step 3/8 : WORKDIR /app
---> Using cache
---> 9b03bbc62069
Step 4/8 : COPY ./requirements.txt /app
---> Using cache
---> 09b7caf2af3f
Step 5/8 : RUN pip install --no-cache-dir --requirement /app/requirements.txt
requirements.txt

---> Running in 4cf4d2ed059b
ERROR: Could not find a version that satisfies the requirement apturl==0.5.2 (from versions: none)
ERROR: No matching distribution found for apturl==0.5.2

The command '/bin/sh -c pip install --no-cache-dir --requirement /app/requirements.txt' returned a non-zero code: 1
doc


@kantancoding
Copy link
Owner

I'm not entirely clear on what the issue is here. Did you change anything in the Dockerfile? are you using a virtual env? Are you adding additional dependencies that aren't in the tutorial? Please provide more details so that I can try to help.

@donwany
Copy link

donwany commented Nov 30, 2022

But it actually wrong package name, ensure pip search(service disabled at the time of writing), or google, or search on pypi site to get the accurate package name: apturl==0.5.2

@kantancoding
Copy link
Owner

closing this since no response from @ekagravarma

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants