小Cの已经记不起来的博客

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

评论

还没有评论。

发表评论

提交后评论将经过自动审核,审核通过后公开展示。

未在播放