Can't install Python Imaging Library using pip

Sayem

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

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).

The pip.log file is provided here: http://pastebin.com/YeBLmMBm

Totem

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

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

无法使用pip安装Python Imaging Library

来自分类Dev

Python Imaging Library无法捕获整个屏幕

来自分类Dev

Python Imaging Library(PIL)源代码

来自分类Dev

Python Imaging Library(PIL)源代码

来自分类Dev

Python Imaging Library-无法打开大的.tif文件

来自分类Dev

定义使用Python Imaging Library从RGB元组绘制的线条的颜色?

来自分类Dev

使用Python Imaging Library(PIL)通过输入像素值创建图像

来自分类Dev

Discord.py Image Editing with Python Imaging Library only works for some pictures?

来自分类Dev

Discord.py Image Editing with Python Imaging Library only works for some pictures?

来自分类Dev

Python Imaging Library-为遇到的最后一个更改颜色

来自分类Dev

“ python -m pip install --upgrade pip”异常错误

来自分类Dev

pip install python-adb 失败

来自分类Dev

apt-get install python-xxx与pip install

来自分类Dev

apt-get install python-xxx与pip install

来自分类Dev

使用Python Imaging Library将图像中的黑色像素覆盖到另一个图像上

来自分类Dev

使用Python Imaging Library进行Discord.py图像编辑仅适用于某些图片吗?

来自分类Dev

Python Imaging Library-将一种像素合并为另一种图像

来自分类Dev

“ pip install”和“ python -m pip install”有什么区别?

来自分类Dev

'pip install <package>'和'python -m pip install <package>'有什么区别?

来自分类Dev

“ pip install sompackage和python pip install somepackage”命令之间的区别

来自分类Dev

How can i install twilio package via pip?

来自分类Dev

robotsframework-selenium2library 的 Python pip 冲突

来自分类Dev

pip install django-graphos与python 3不兼容

来自分类Dev

在Ubuntu 12.04上pip install MySql-python == 1.2.4失败

来自分类Dev

在Linux上pip install python-libtorrent == 1.1.0失败

来自分类Dev

pip或easy_install默认引用哪个Python版本?

来自分类Dev

如何使用pip install为Python 3.2安装请求模块?

来自分类Dev

Pip“ install”安装在Jython中,而不是python中

来自分类Dev

python pip install在Windows上不起作用

Related 相关文章

  1. 1

    无法使用pip安装Python Imaging Library

  2. 2

    Python Imaging Library无法捕获整个屏幕

  3. 3

    Python Imaging Library(PIL)源代码

  4. 4

    Python Imaging Library(PIL)源代码

  5. 5

    Python Imaging Library-无法打开大的.tif文件

  6. 6

    定义使用Python Imaging Library从RGB元组绘制的线条的颜色?

  7. 7

    使用Python Imaging Library(PIL)通过输入像素值创建图像

  8. 8

    Discord.py Image Editing with Python Imaging Library only works for some pictures?

  9. 9

    Discord.py Image Editing with Python Imaging Library only works for some pictures?

  10. 10

    Python Imaging Library-为遇到的最后一个更改颜色

  11. 11

    “ python -m pip install --upgrade pip”异常错误

  12. 12

    pip install python-adb 失败

  13. 13

    apt-get install python-xxx与pip install

  14. 14

    apt-get install python-xxx与pip install

  15. 15

    使用Python Imaging Library将图像中的黑色像素覆盖到另一个图像上

  16. 16

    使用Python Imaging Library进行Discord.py图像编辑仅适用于某些图片吗?

  17. 17

    Python Imaging Library-将一种像素合并为另一种图像

  18. 18

    “ pip install”和“ python -m pip install”有什么区别?

  19. 19

    'pip install <package>'和'python -m pip install <package>'有什么区别?

  20. 20

    “ pip install sompackage和python pip install somepackage”命令之间的区别

  21. 21

    How can i install twilio package via pip?

  22. 22

    robotsframework-selenium2library 的 Python pip 冲突

  23. 23

    pip install django-graphos与python 3不兼容

  24. 24

    在Ubuntu 12.04上pip install MySql-python == 1.2.4失败

  25. 25

    在Linux上pip install python-libtorrent == 1.1.0失败

  26. 26

    pip或easy_install默认引用哪个Python版本?

  27. 27

    如何使用pip install为Python 3.2安装请求模块?

  28. 28

    Pip“ install”安装在Jython中,而不是python中

  29. 29

    python pip install在Windows上不起作用

热门标签

归档