Home >Backend Development >Python Tutorial >How to install pillow module in python3

How to install pillow module in python3

silencement
silencementOriginal
2019-06-24 16:18:1210157browse

How to install pillow module in python3

Pillow is a fork of PIL, but has now developed into a more dynamic image processing library than PIL itself. The latest version currently is 3.0.0.

Pillow's Github homepage: https://github.com/python-pillow/Pillow

Pillow's documentation (corresponding to version v3.0.0): https://pillow.readthedocs.org /en/latest/handbook/index.html

Chinese translation of Pillow’s documentation (corresponding to version v2.4.0): http://pillow-cn.readthedocs.org/en/latest/

Python 3.x Installing Pillow

Installing Pillow for Python is very simple. It only takes one line of code to use pip or easy_install.

Use PIP to install on the command line:

pip install Pillow

or use easy_install to install on the command line:

easy_install Pillow

After the installation is complete, use from PIL import Image to reference the library. For example:

from PIL import Image
im = Image.open("bride.jpg")
im.rotate(45).show()

The above is the detailed content of How to install pillow module in python3. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn