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

How to install pillow module in python3

silencement
Release: 2019-06-24 16:18:12
Original
10197 people have browsed it

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
Copy after login

or use easy_install to install on the command line:

easy_install Pillow
Copy after login

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()
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template