Home  >  Article  >  Backend Development  >  How to install pil module in python

How to install pil module in python

尚
Original
2019-06-25 15:31:1628832browse

How to install pil module in python

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 installation pillow

This installation method is completed in the windows7 environment:

1. Win r brings up the running window, type cmd to pop up the command window

How to install pil module in python

2. Here you need to type the command to transfer to the folder where python is located, as shown in the picture, I installed python in the d drive

How to install pil module in python

3. Type pip after D:\python> to install pip; in fact, pip is already built-in in python3 and above, no need to install it;

How to install pil module in python

4. Then type pip install Pillow and it will prompt that the installation is successful (successful), that is, the installation is completed,

How to install pil module in python

5. Let’s use python3.7.0 idle to test it. OK, no problem, so, We have successfully installed PIL.

How to install pil module in python

For more Python related technical articles, please visit the Python Tutorial column to learn!

The above is the detailed content of How to install pil module in python. 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