安装python的第三方库pillow

参考:http://jingyan.baidu.com/article/ff42efa929e6c8c19f220254.html

用Python做图像处理时,需要用到PIL(图像处理库)。但是PIL已停止更新,而Pillow是对PIL很友好的分支,因此本文介绍win8上如何安装Pillow库。

1.在python的安装路径找到easy_install工具:C:Python27Scriptseasy_install-2.7.exe

2.在上述目录按shift键,右键点击,打开cmd命令行,输入安装命令:easy_install-2.7.exe pip

3.安装Pillow:pip install pillow

提示:

You are using pip version 7.1.2, however version 8.1.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' comm
and.

使用python -m pip install --upgrade pip命令更新pip版本,出现下图界面:

安装python的第三方库pillow

至此安装成功。