我想在表单中使用 ImageField,根据文档,我需要安装 Python Imaging Library:
http://www.pythonware.com/products/pil/
文档说当前免费版本为 PIL 1.1.7,所以我决定选择它。我正在使用 Lubuntu(Linux),唯一的非 Windows 安装是
Python Imaging Library 1.1.7 Source Kit
所以我决定点击并安装那个 .tar.gz 文件。现在我已经在我的下载文件夹中有了 Imaging-1.1.7.tar.gz 文件。请问有人可以告诉我/展示一个网站,说明如何将其与 Django 链接起来吗?我应该把文件解压到哪里?
pip install pillow
安装 Pillow 库。该库的源码托管在 GitHub 上,链接为 https://github.com/python-imaging/Pillow。 - allcaps