pip安装pillow失败需要补充环境依赖
首先pillow安装时需要gcc和g++环境,其次是一些系统环境包的依赖,这里官方给出了详细的依赖安装说明:https://pillow.readthedocs.io/en/latest/installation.html
以centos为例:
# 安装依赖 yum install python3-devel redhat-rpm-config yum install libtiff-devel libjpeg-devel openjpeg2-devel zlib-devel \ freetype-devel lcms2-devel libwebp-devel tcl-devel tk-devel \ harfbuzz-devel fribidi-devel libraqm-devel libimagequant-devel libxcb-devel pip3 install Pillow
本文来自博客园,作者:海_纳百川,转载请注明原文链接:https://www.cnblogs.com/chentiao/p/17451820.html,如有侵权联系删除