sudo apt-get install python-pil 在 Ubuntu 12.04 上?

sudo apt-get install python-pil 在 Ubuntu 12.04 上?

我受到限制sudo apt-get install,需要安装 python-pil,所以命令应该是sudo apt-get install python-pil,但问题是:

sudo apt-get install python-pil
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package python-pil is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'python-pil' has no installation candidate

如何解决这个问题?

答案1

似乎不支持 PIL,我已经安装了 Pillow。

Pillow 是 Alex Clark 及其贡献者开发的友好 PIL 分支。PIL 是 Fredrik Lundh 及其贡献者开发的 Python 图像库。

所以命令应该是:

sudo apt-get install python-pillow

相关内容