python3'image'模块怎么安装

如题所述

PIL(Python Imaging Library)是Python一个强大方便的图像处理库,名气也比较大。不过只支持到Python 2.7。 Python 3.x 安装Pillow 给Python安装Pillow非常简单,使用pip或easy_install只要一行代码即可。 在命令行使用PIP安装: pip install Pil
温馨提示:答案为网友推荐,仅供参考
第1个回答  2018-02-21
如果是ubuntu里面的安装。在已经安装了python3的情况下。
sudo pip3 install pillow

使用的时候和2.7版本不一样。
from PIL import Image
相似回答