嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300
本次赞助数额为: 2 元微信扫码支付:2 元
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
一、安装依赖
CentOS
第一步:
yum install python-devel
第二步:
yum install freetype-devel libjpeg-devel libpng-devel
sudo yum install libtiff-devel libjpeg-devel libzip-devel freetype-devel \
lcms2-devel libwebp-devel tcl-devel tk-devel
第三步:RPM包安装PIL
下载安装:ftp://rpmfind.net/linux/atrpms/f20-x86_64/atrpms/stable/PIL-1.1.7-10.1.fc20.x86_64.rpm
更多版本:http://rpmfind.net/linux/rpm2html/search.php?query=PIL&submit=Search ...&system=&arch=
Windows
第一步:
下载安装pip
a. 下载地址:https://pypi.python.org/packages/source/p/pip/pip-7.1.2.tar.gz#md5=3823d2343d9f3aaab21cf9c917710196
b. 解压,进入目录
c. 安装,Python setup.py install
注:安装过程中可能依赖setuptools,安装过程如下:
下载文件:https://bootstrap.pypa.io/ez_setup.py
执行文件:Python ez_setup.py
第二步:
pip install Pillow
更多安装文档:http://pillow.readthedocs.org/en/latest/installation.html
二 运行
运行:Python manage.py runserver 127.0.0.1:8000
浏览器访问:http://127.0.0.1:8000/login/