最近写程序用到了这个模块,但是貌似在

这个问题网上的答案都解决不了我的问题,过不初步可以确定是关于图片的库出了问题,于是这样:

安装命令

yum install python-devel -y

yum install libtiff-devel libjpeg-devel libzip-devel freetype-devel \
    lcms2-devel libwebp-devel tcl-devel tk-devel -y


pip install pillow

or

easy_install pillow

问题

qr.make_image的时候出现错误

encoder zip not available

老高是这样解决的

pip uninstall pillow

yum install libpng-devel libjpeg-devel -y
yum install freetype-devel freetype-demos freetype-utils -y
yum install libtiff-devel libjpeg-devel libzip-devel freetype-devel  \
lcms2-devel libwebp-devel tcl-devel tk-devel -y

pip install pillow

以上

标签: python, pillow

添加新评论