pkg_resources.DistributionNotFound:PIL

时间:2014-01-10 12:38:41

标签: python linux django

我正在尝试将reviewcode的python / django用于git repo。 安装时

  

easy_install ReviewBoard

我收到以下错误

  

安装脚本退出并显示错误:命令'x86_64-linux-gnu-gcc'失败   退出状态为1。

安装PIL依赖项时发生此错误。我使用

手动安装
  

pip install PIL

已成功安装

但是在创建网站时:

  

sudo rb-site install / var / www / reviewboard

但现在收到了令人讨厌的错误:

  

pkg_resources.DistributionNotFound:PIL

任何线索,如何解决这个问题?

更新

PIL SETUP SUMMARY
--------------------------------------------------------------------
version      Pillow 2.3.0
platform     linux2 2.7.5+ (default, Sep 19 2013, 13:48:49)
             [GCC 4.8.1]
--------------------------------------------------------------------
*** TKINTER support not available
--- JPEG support available
--- ZLIB (PNG/ZIP) support available
*** LIBTIFF support not available
--- FREETYPE2 support available
*** LITTLECMS2 support not available
*** WEBP support not available
*** WEBPMUX support not available
--------------------------------------------------------------------
To add a missing option, make sure you have the required
library, and set the corresponding ROOT variable in the
setup.py script.

To check the build, run the selftest.py script.

changing mode of build/scripts-2.7/pilprint.py from 644 to 755
changing mode of build/scripts-2.7/pilconvert.py from 644 to 755
changing mode of build/scripts-2.7/pilfont.py from 644 to 755
changing mode of build/scripts-2.7/pilfile.py from 644 to 755
changing mode of build/scripts-2.7/pildriver.py from 644 to 755
changing mode of /home/naveen/ENV/ly-subs/bin/pilprint.py to 755
changing mode of /home/naveen/ENV/ly-subs/bin/pilconvert.py to 755
changing mode of /home/naveen/ENV/ly-subs/bin/pilfont.py to 755
changing mode of /home/naveen/ENV/ly-subs/bin/pilfile.py to 755
changing mode of /home/naveen/ENV/ly-subs/bin/pildriver.py to 755

2 个答案:

答案 0 :(得分:0)

Python 1.6 release notes中所述:

  

Pillow现在是与Django一起使用的首选图像处理库。 PIL正在等待弃用(支持在Django 1.8中删除)。要升级,首先应卸载PIL,然后安装Pillow。

答案 1 :(得分:0)

sudo pip install PIL --allow-external PIL --allow-unverified PIL
相关问题