MAC安装PIL(Pillow)提示could not be found for zlib

其实报错已经很明显了

The headers or library files could not be found for zlib,
a required dependency when compiling Pillow from source.

安装zlib即可

1. 从官网下载最新版本的zlib文件(http://zlib.net/)

wget http://zlib.net/zlib-1.2.11.tar.gz #最好用官网的最新版
tar zxvf zlib-1.2.11.tar.gz
cd zlib-1.2.11/
./configure
make
sudo make install
sudo pip install Pillow

发表评论

您的电子邮箱地址不会被公开。