mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 18:26:17 +03:00
Merge pull request #4406 from radarhere/python2
Unlike PIL, Pillow does not support Python 2
This commit is contained in:
commit
81ea2b32af
|
@ -3,9 +3,14 @@ Porting
|
|||
|
||||
**Porting existing PIL-based code to Pillow**
|
||||
|
||||
Pillow is a functional drop-in replacement for the Python Imaging Library. To
|
||||
run your existing PIL-compatible code with Pillow, it needs to be modified to
|
||||
import the ``Image`` module from the ``PIL`` namespace *instead* of the
|
||||
Pillow is a functional drop-in replacement for the Python Imaging Library.
|
||||
|
||||
PIL is Python 2 only. Pillow dropped support for Python 2 in Pillow
|
||||
7.0. So if you would like to run the latest version of Pillow, you will first
|
||||
and foremost need to port your code from Python 2 to 3.
|
||||
|
||||
To run your existing PIL-compatible code with Pillow, it needs to be modified
|
||||
to import the ``Image`` module from the ``PIL`` namespace *instead* of the
|
||||
global namespace. Change this::
|
||||
|
||||
import Image
|
||||
|
|
Loading…
Reference in New Issue
Block a user