[英]pkg_resources.DistributionNotFound: PIL
I am trying to use the reviewcode of python/django for a git repo. 我试图使用reviewcode蟒蛇/ Django的的一个混帐回购协议。 while installing the
在安装
easy_install ReviewBoard
easy_install评论板
I got the following error 我收到以下错误
Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1.
安装脚本退出并出现错误:命令“ x86_64-linux-gnu-gcc”失败,退出状态为1。
this error occurred while installing the PIL dependency. 安装PIL依赖项时发生此错误。 I installed it manually using
我使用手动安装
pip install PIL
点安装PIL
which installed successfully 哪个安装成功
but on creating the site like : 但是在创建网站时像:
sudo rb-site install /var/www/reviewboard
sudo rb-site install / var / www / reviewboard
but Now getting the annoying error: 但是现在得到烦人的错误:
pkg_resources.DistributionNotFound: PIL
pkg_resources.DistributionNotFound:PIL
any clue, How this problem can be resolved ? 任何线索,如何解决这个问题?
Update 更新资料
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
As mentioned in Python 1.6 release notes : 如Python 1.6发行说明所述 :
Pillow is now the preferred image manipulation library to use with Django.
现在,Pillow是与Django一起使用的首选图像处理库。 PIL is pending deprecation (support to be removed in Django 1.8).
PIL正在待弃用(在Django 1.8中将不再支持)。 To upgrade, you should first uninstall PIL, then install Pillow.
要升级,您应该先卸载PIL,然后再安装Pillow。
sudo pip install PIL --allow-external PIL --allow-unverified PIL
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.