Skip to content

Commit 81ea2b3

Browse files
authored
Merge pull request #4406 from radarhere/python2
Unlike PIL, Pillow does not support Python 2
2 parents 3ebe232 + 50ce9ba commit 81ea2b3

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

docs/porting.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,14 @@ Porting
33

44
**Porting existing PIL-based code to Pillow**
55

6-
Pillow is a functional drop-in replacement for the Python Imaging Library. To
7-
run your existing PIL-compatible code with Pillow, it needs to be modified to
8-
import the ``Image`` module from the ``PIL`` namespace *instead* of the
6+
Pillow is a functional drop-in replacement for the Python Imaging Library.
7+
8+
PIL is Python 2 only. Pillow dropped support for Python 2 in Pillow
9+
7.0. So if you would like to run the latest version of Pillow, you will first
10+
and foremost need to port your code from Python 2 to 3.
11+
12+
To run your existing PIL-compatible code with Pillow, it needs to be modified
13+
to import the ``Image`` module from the ``PIL`` namespace *instead* of the
914
global namespace. Change this::
1015

1116
import Image

0 commit comments

Comments
 (0)