Centos安装Pillow模块出错解决办法

http://pillow.readthedocs.io/en/4.3.x/installation.html

今天在新的电脑上安装Pilow,发现报错(主要错误):

The headers or library files could not be found for zlib,

a required dependency when compiling Pillow from source.

其实就是缺少一些相关的依赖,上网查了下,发现安装以下依赖就OK了:

sudo yum install python-devel
sudo yum install zlib-devel
sudo yum install libjpeg-turbo-devel
原文地址:https://www.cnblogs.com/liangping/p/7898515.html