Home > Article > Backend Development > How to install the pil library in python3.7.2
Introduction
PIL (Python Imaging Library) is a powerful image processing library in Python, but currently it only supports Python2.7
Pillow is a branch of PIL. Although it is a branch, it also has a strong image processing library like PIL.
Python3.7.0 How to install pillow
This installation method is completed in the windows7 environment:
>>> ;Win r brings up the running window, type cmd to pop up the command window
##>>>Here you need to type the command to transfer to the folder where python is located, as shown in the figure , I installed python in the d drive##>>> Type pip after D:\python> to install pip; in fact, in python3 or above pip is already built-in, no need to install it;
>>> Then type pip install Pillow and it will prompt that the installation is successful (successful), that is, the installation is complete. I have already installed it here. No more demonstrations.
##>>> Let’s test it using python3.7.0 idle. It’s ok. Then, we will successfully install PIL. Now you can do small projects related to image processing.
import PIL
Recommended related tutorials:
Python video tutorial
The above is the detailed content of How to install the pil library in python3.7.2. For more information, please follow other related articles on the PHP Chinese website!