Python 成像库 (PIL) 源代码

Python Imaging Library (PIL) source code

我在查找 PIL 源代码时遇到问题。

图书馆的主页 http://www.pythonware.com/products/pil/ 没有任何 link 到 git 的存储库。

Pillow (https://github.com/python-pillow/Pillow) 存储库项目正确吗?

没有。我认为这是不同的项目。 https://pillow.readthedocs.io/en/latest/installation.html 当你要安装pillow时,你必须卸载PIL

PIL 从未移植到 Python3,因此 Pillow 分叉了该项目并接管了它。 Pillow 有 since been back-ported 到 Python 2,但是如果你正在使用 Python 3,你必须使用 Pillow。它们本质上是一样的。

如果您想要 PIL 的源代码,只需下载并自行查看文件即可。如果您想要 PIL 的 文档this 是一个很好的参考。