无法使用pip安装Python Imaging Library [英] Can't install Python Imaging Library using pip
问题描述
尝试使用PIP安装Python Imaging Library(PIL)时,安装失败,并出现以下错误:
When trying to install Python Imaging Library(PIL) using PIP, the installation failed with the following error:
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/tmp/pip_build_root/pil/setup.py", line 182
print "--- using Tcl/Tk libraries at", TCL_ROOT
某人面临相同的问题,但提供的解决方案是针对不同的图书馆,对我不起作用.在官方邮件列表中,有一个旧条目(2003)讨论了该问题,但没有提供解决方案,而是要求降级PIL并在以后提供修复(我不希望降级).
Somebody else faced the same issue but the provided solution was for a different library and didn't work for me. In the official mailing list there's an old entry(2003) which discusses the problem but instead of providing a solution, asked to downgrade PIL and providing a fix later (I prefer not to downgrade).
此处提供了pip.log文件: http://pastebin.com/YeBLmMBm
The pip.log file is provided here: http://pastebin.com/YeBLmMBm
推荐答案
PIL有一个名为Pillow的新分支,对于许多人来说,它似乎比PIL更稳定地工作.它也很容易安装.在此处(有关信息/文档)和
There is a new fork of PIL called Pillow which seems to work more consistently than PIL for a lot of people. It's easy to install also. Look here(for info/docs) and here(to install). Though I think pip install Pillow
should work
这篇关于无法使用pip安装Python Imaging Library的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!