Skip to content

Commit ee37c63

Browse files
authored
Merge pull request #7814 from hugovk/docs-rm-warnings
Remove outdated installation warnings
2 parents 5830396 + f11ff46 commit ee37c63

File tree

2 files changed

+24
-9
lines changed

2 files changed

+24
-9
lines changed

docs/deprecations.rst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,3 +504,27 @@ PIL.OleFileIO
504504
the upstream :pypi:`olefile` Python package, and replaced with an :py:exc:`ImportError` in 5.0.0
505505
(2018-01). The deprecated file has now been removed from Pillow. If needed, install from
506506
PyPI (eg. ``python3 -m pip install olefile``).
507+
508+
import _imaging
509+
~~~~~~~~~~~~~~~
510+
511+
.. versionremoved:: 2.1.0
512+
513+
Pillow >= 2.1.0 no longer supports ``import _imaging``.
514+
Please use ``from PIL.Image import core as _imaging`` instead.
515+
516+
Pillow and PIL
517+
~~~~~~~~~~~~~~
518+
519+
Pillow and PIL cannot co-exist in the same environment.
520+
Before installing Pillow, please uninstall PIL.
521+
522+
.. versionremoved:: 1.0.0
523+
524+
import Image
525+
~~~~~~~~~~~~
526+
527+
.. versionremoved:: 1.0.0
528+
529+
Pillow >= 1.0 no longer supports ``import Image``.
530+
Please use ``from PIL import Image`` instead.

docs/installation.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,6 @@ Installation
99
});
1010
</script>
1111

12-
Warnings
13-
--------
14-
15-
.. warning:: Pillow and PIL cannot co-exist in the same environment. Before installing Pillow, please uninstall PIL.
16-
17-
.. warning:: Pillow >= 1.0 no longer supports ``import Image``. Please use ``from PIL import Image`` instead.
18-
19-
.. warning:: Pillow >= 2.1.0 no longer supports ``import _imaging``. Please use ``from PIL.Image import core as _imaging`` instead.
20-
2112
Python Support
2213
--------------
2314

0 commit comments

Comments
 (0)