python 验证码登陆示例源码(Django)
一、安装依赖CentOS第一步:yum install python-devel第二步:yum install freetype-devel libjpeg-devel libpng-develsudo 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第一步:下载安装pipa. 下载地址:https://pypi.python.org/packages/source/p/pip/pip-7.1.2.tar.gz#md5=3823d2343d9f3aaab21cf9c917710196b. 解压,进入目录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/