本文介绍了无法安装PIL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法安装PIL.当我运行pip install PIL时,我得到:

I'm unable to install PIL. When I run pip install PIL I get:

Downloading/unpacking PIL
  Could not find any downloads that satisfy the requirement PIL
Cleaning up...
No distributions at all found for PIL
Storing debug log for failure in /tmp/tmpWJojCu

我尝试按照的答案进行操作问题,但我遇到了同样的错误.

I've tried following the answers to this question but I get the same error.

堆栈:Python 2.7,PIP,EC2 Ubuntu计算机.

Stack: Python 2.7, PIP, EC2 Ubuntu machine.

推荐答案

这个人很多,PIL成了 pillow .

This one bites a lot of people, PIL has become pillow.

pip install pillow

但是导入名称未更改,因此它与软件包名称现在不同.也就是说,您继续使用:

But the import name was unchanged, so it is different from the package name now. That is, you continue to use:

from PIL import Image

这篇关于无法安装PIL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-15 05:24