6
Turns out, jpeg-dev
(required by the compilation) was not enough to satisfy all dependencies during execution. Adding libjpeg
solved the issue. Updated Dockerfile
# install mysqlclient
RUN apk update \
&& apk add --virtual build-deps gcc python3-dev musl-dev jpeg-dev zlib-dev \
&& apk add --no-cache mariadb-dev mariadb-client
# install dependencies
RUN pip install --upgrade pip
RUN pip install pipenv
RUN pip install mysqlclient
RUN apk add libjpeg -------------> et voila
COPY ./Pipfile /usr/src/cms/Pipfile
RUN pipenv install --skip-lock --system --dev
RUN apk del build-deps
0
In my case, as I am using Docker, I had to add
RUN python -m pip install Pillow
into my DockerFile, before RUN pip install -r ./requirements/prod.txt
.
Simply running python -m pip install Pillow
in the terminal
wouldn’t work.
Source:stackexchange.com