pip install pillow 报错解决方案
环境:
- python:3.7 alpine
- docker 构建service 需要用到 pillow 库报错
报错信息
ip install pillow
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pillow
Using cached
https://files.pythonhosted.org/packages/3c/7e/443be24431324bd34d2
2dd9d11cc845d995bcd3b500676bcf23142756975/Pillow-5.4.1.tar.gz
Installing collected packages: pillow
Running setup.py install for pillow ... error
Complete output from command /usr/bin/python -u -c "import setuptools, token ize;__file__='/tmp/pip-install-Q2fwNi/pillow/setup.py';f=getattr(tokenize, 'open ', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(co de, __file__, 'exec'))" install --record /tmp/pip-record-uWuhA1/install-record.t xt --single-version-externally-managed --compile:
Single threaded build, not installing mp_compile:1 processes
running install
running build
running build_py
creating build
creating build/lib.linux-armv6l-2.7
creating build/lib.linux-armv6l-2.7/PIL
copying src/PIL/FtexImagePlugin.py -> build/lib.linux-armv6l-2.7/PIL
copying src/PIL/PpmImagePlugin.py -> build/lib.linux-armv6l-2.7/PIL
copying src/PIL/ImageFont.py -> build/lib.linux-armv6l-2.7/PIL
copying src/PIL/JpegImagePlugin.py -> build/lib.linux-armv6l-2.7/PIL
copying src/PIL/PsdImagePlugin.py -> build/lib.linux-armv6l-2.7/PIL
copying src/PIL/ImImagePlugin.py -> build/lib.linux-armv6l-2.7/PIL
copying src/PIL/SgiImagePlugi