您的位置:首页 > 其它

windows下 PIL安装和pillow方法

2018-03-05 15:38 399 查看
PIL(Python Imaging Library)是Python常用的图像处理库,而Pillow是PIL的一个友好Fork,提供了了广泛的文件格式支持,强大的图像处理能力,主要包括图像储存、图像显示、格式转换以及基本的图像处理操作等。Pillow的文档:http://pillow.readthedocs.io/en/latest/Pillow的github:https://github.com/python-pillow/Pillow1. Pillow的注意事项
Pillow and PIL cannot co-exist in the same environment. Before installing Pillow, please uninstall PIL.
Pillow >= 1.0 no longer supports “import Image”. Please use “from PIL import Image” instead.
Pillow >= 2.1.0 no longer supports “import _imaging”. Please use “from PIL.Image import core as _imaging” instead.
Pillow < 2.0.0 supports Python versions 2.4, 2.5, 2.6, 2.7.
Pillow >= 2.0.0 < 4.0.0 supports Python versions 2.6, 2.7, 3.2, 3.3, 3.4, 3.5
Pillow >= 4.0.0 supports Python versions 2.7, 3.3, 3.4, 3.5, 3.62.windows安装PILPIL安装很麻烦,推荐下载exe直接安装PIL官网:http://pythonware.com/products/pil/但现在里面下载链接访问不了,我把32位和64位版本上传到博客园以供下载。PILwin32:http://files.cnblogs.com/files/pcat/PILwin32.zipPILwin64:http://files.cnblogs.com/files/pcat/PILwin64.zip3. windows安装Pillow 
pip install pillow 或者在http://www.lfd.uci.edu/~gohlke/pythonlibs/#pillow 下载wheel文件使用pip安装
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  PIL Pillow