Home >Backend Development >Python Tutorial >How to install the pil library in python3.7.2

How to install the pil library in python3.7.2

步履不停
步履不停Original
2019-07-02 12:01:307266browse

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

How to install the pil library in python3.7.2

##>>>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

How to install the pil library in python3.7.2##>>> Type pip after D:\python> to install pip; in fact, in python3 or above pip is already built-in, no need to install it;

How to install the pil library in python3.7.2>>> 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. How to install the pil library in python3.7.2

import PIL

How to install the pil library in python3.7.2 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!

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