Tag: 蟒成像图书馆

在Docker中使用枕头

由于某些原因,我无法在docker中安装python的PIL模块。 以下是我的描述: requirements.txt Pillow flask redis Dockerfile FROM python:2.7 ADD . /code WORKDIR /code RUN pip install -r requirements.txt CMD python app.py app.py import PIL 命令 $ sudo docker build -t web . Installing collected packages: Pillow, Werkzeug, MarkupSafe, Jinja2, itsdangerous, flask, redis Successfully installed Jinja2-2.8 MarkupSafe-0.23 Pillow-2.9.0 Werkzeug-0.10.4 flask-0.10.1 itsdangerous-0.24 redis-2.10.3 —> 91dfb38bd480 Removing […]