当我使用easy_install或buildout安装PIL时,其安装方式必须是“导入映像”,而不是“从PIL导入映像”。但是,如果我执行“ apt-get install python-imaging”或使用“ pip -E test_pil install PIL”,则一切正常。以下是我如何尝试使用virtualenv安装PIL的示例:# virtualenv --no-site-packages test_pil# test_pil/bin/easy_install PIL# test_pil/bin/pythonPython 2.5.1 (r251:54863, Feb 6 2009, 19:02:12) [GCC 4.0.1 (Apple Inc. build 5465)] on darwinType "help", "copyright", "credits" or "license" for more information.>>> import PILTraceback (most recent call last): File "<stdin>", line 1, in <module>ImportError: No module named PIL我看到,easy_install将PIL打包到Egg中,而PIP没有。与buildbot相同,它使用鸡蛋。如何使用easy_install或buildout正确安装PIL?
3 回答

泛舟湖上清波郎朗
TA贡献1818条经验 获得超3个赞
使用枕头:“友好的” PIL叉 :-)它提供:
完全的设置工具兼容性
更快的发布周期
没有与PIL不同的图像代码更改(即,它旨在跟踪所有PIL图像代码更改,并且在不向上游报告的情况下不进行任何更改)。
Windows二进制文件
如果PIL确实做到了Pillow所做的事情,那么前叉就会死掉。在此之前,我们有Pillow。
免责声明:我是fork的作者,Pillow的创建主要是为了使我的工作更轻松(尽管很高兴看到其他人也使用它)。
发布了Pillow 2.0.0。它提供Python 3支持和许多错误修复/增强功能。尽管我们仍然尝试跟踪上游PIL的变化,(不幸或幸运的是,取决于您的查看方式)Pillow已开始偏离PIL。
添加回答
举报
0/150
提交
取消