最近在做题的过程中了解到Python的PIL库,所以在本地的CentOS7下安装了PIL
1.安装EPEL源
# yum -y install epel-release
2.安装pip
# yum -y install python-pip
3.对pip进行升级
# pip install --upgrade pip
使用pip下载用官方源会很慢,所以建议使用豆瓣源https://pypi.douban.com/simple
,比如下载requests:pip install requests -i https://pypi.douban.com/simple
4.安装缺少类库及PIL
# yum -y install python-devel
# yum install libjpeg libjpeg-devel zlib zlib-devel freetype freetype-devel lcms lcms-devel
# yum -y install python-imaging