我想用Python调整一些图像大小。我试图用Python Image Library来做。我咆哮着正确的树吗?
我尝试从我的源http://www.pythonware.com/products/pil/在我的Mac上安装PIL,但是自09年以来它还没有更新。有什么新的东西我应该研究一下吗?
安装它会给我一个错误:
unable to execute gcc-4.0: No such file or directory
error: command 'gcc-4.0' failed with exit status 1
我尝试安装GCC,但我认为我有4.2.1
任何帮助?
答案 0 :(得分:1)
是PIL是正确的模块。但也可以试试ImageMagick
http://www.imagemagick.org/script/index.php
没有PIL 1.1.7是最新的,2009年11月15日
您可以查看此http://passingcuriosity.com/2009/installing-pil-on-mac-os-x-leopard/
答案 1 :(得分:0)
PIL是正确的模块,PIL 1.1.7可能不是您想要的版本。 : - )
如果来自dilip kumbham的链接不起作用,可在http://pypi.python.org/pypi/Pillow
获得PIL分支。据我所知,该项目主要是关于修复包装问题,所以一般来说安装起来可能比较容易。