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

ERROR: failed to solve: process "/bin/sh -c pip install --no-cache-dir --requirement /app/requirements.txt" did not complete successfully: exit code: 1 #31

Open
ghost opened this issue Jul 3, 2023 · 4 comments

Comments

@ghost
Copy link

ghost commented Jul 3, 2023

I followed along till writing the Dockerfile and did the pip3 freeze but then when i ran the script, mysqlclient is creating problems and is interrupting the build process. I faced a similar issue during the initial stage too when you once did the localhost print statement but then, everything after that step went smooth until this error. Im using MacBook Air M1 (2020). Requesting your help. Thanks in advance!

@ghost
Copy link
Author

ghost commented Jul 3, 2023

Screenshot 2023-07-03 at 6 42 51 PM

@tanlethanh
Copy link

You can fix the error by including pkg-config when installing
image

@hkumar0132
Copy link

hkumar0132 commented Aug 15, 2023

Adding --fix-missing to this command and retrying multiple times also works on MacOS

RUN apt-get update \ && apt-get install -y --no-install-recommends --no-install-suggests \ build-essential default-libmysqlclient-dev \ && apt-get -y --fix-missing install \ && pip install --no-cache-dir --upgrade pip

@uzairjan
Copy link

uzairjan commented Jan 4, 2024

You can fix the error by including pkg-config when installing image

worked for me.

RUN apt-get update \ && apt-get install -y --no-install-recommends --no-install-suggests \ python3-dev default-libmysqlclient-dev build-essential pkg-config \ && pip install --no-cache-dir --upgrade pip

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