Pillow python module is the python PIL fork created by Alex Clark and Contributors.
As you know the PIL python module is the Python Imaging Library by Fredrik Lundh and Contributors.
I used the Python 3.4 version with pip to install and upgrade the Pillow 2.8.1 python module.
The Pillow module version >= 2.0.0 supports Python versions 2.6, 2.7, 3.2, 3.3, 3.4 and no longer supports “import _imaging”. Please use “from PIL.Image import core as _imaging” instead.
Pillow and PIL cannot co-exist in the same environment and you need to uninstall PIL and after install the Pillow python module.
1 2 3 4 5 6 7 8 9 10 11 12 | C:\Python34\Scripts>pip3.4.exe install pillow Requirement already satisfied (use --upgrade to upgrade): pillow in c:\python34\lib\site-packages C:\Python34\Scripts>pip3.4.exe install pillow --upgrade Collecting pillow Downloading Pillow-2.9.0-cp34-none-win_amd64.whl (1.3MB) 100% |################################| 1.3MB 98kB/s Installing collected packages: pillow Found existing installation: Pillow 2.8.1 Uninstalling Pillow-2.8.1: Successfully uninstalled Pillow-2.8.1 Successfully installed pillow-2.9.0 |
Now you need to use PIL instead of the Pillow. Let see:
1 2 3 4 5 6 7 8 9 10 11 12 13 | C:\Python34\Scripts>cd .. C:\Python34>python Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:45:13) [MSC v.1600 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import PIL >>> from PIL import * >>> dir(PIL) ['PILLOW_VERSION', 'VERSION', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', '_plugins'] >>> print(PIL.VERSION) 1.1.7 >>> print(PIL.PILLOW_VERSION) 2.9.0 >>> |