ERROR: failed to solve: process "/bin/sh -c pip install --no-cache-dir --requirement /app/requirements.txt" did not complete successfully: exit code: 1
Opened this issue · 4 comments
atreyanr commented
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!
atreyanr commented
tanlethanh commented
hkumar0132 commented
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 commented