crx349 发表于 2018-9-27 17:39:54

python安装类库PIL

1.安装


wget http://effbot.org/media/downloads/Imaging-1.1.7.tar.gz
tar -zxvf Imaging-1.1.7
cd Imaging-1.1.7
python setup.py build_ext -i#用来进行安装前的检查
#修改setup.py
TCL_ROOT = "/usr/lib64/"
JPEG_ROOT = "/usr/lib64/"
ZLIB_ROOT = "/usr/lib64/"
TIFF_ROOT = "/usr/lib64/"
FREETYPE_ROOT = "/usr/lib64/"
LCMS_ROOT = "/usr/lib64/"
#安装
python setup.py install

2.测试
python
from PIL import Image

页: [1]
查看完整版本: python安装类库PIL