Open ruanchaves opened 3 years ago
Can be solved with next steps:
git clone https://github.com/tobycheese/9.0-cudnn7-devel-ubuntu18.04.git
cd 9.0-cudnn7-devel-ubuntu18.04/docker/
docker build -t 9.0-cudnn7-devel-ubuntu18.04 .
Result docker file:
#FROM nvidia/cuda:9.0-cudnn7-devel
FROM 9.0-cudnn7-devel-ubuntu18.04
# Install face recognition dependencies
RUN apt update -y; apt install -y \
git \
cmake \
libsm6 \
libxext6 \
libxrender-dev \
libopenblas-dev \
liblapack-dev \
python3 \
python3-pip
...
Description
If you clone this repository and run
docker-compose up --build
, the image fails to build.To be more precise, it fails with a Python
SyntaxError: invalid syntax
while trying to installPillow
fromrequirements.txt
.As you can see below, these are the contents of the
requirements.txt
file:I highly suspect that this is happening because the right version of Pillow for this Docker container has not been annotated on the requirements.txt file, so it is pulling the latest version of Pillow, which is incompatible.
Does anyone know the right versions of Pillow and numpy for this Docker container? Maybe pinpointing those versions would solve the problem.
What I Did
Just followed the documentation. I uncommented the nvidia-related lines on
docker-compose.yml
and randocker-compose up --build
.This is my
docker-compose.yml
.This is the traceback.