Home >Backend Development >Python Tutorial >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!