Tag: 枕头

在Ubuntu virtualenv上的pip install Pillow错误

我有一个ec2实例,并在我的virtualenv最初安装枕头2.0。 不知何故,当我试图升级到枕头2.5,它失败了以下消息。 即使在重新安装之前,我完全卸下枕头,错误也是一样的。 (所以现在我没有在我的virtualenv枕头) $ pip install Pillow …. …. gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Qunused-arguments -Qunused-arguments -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -I/usr/include/freetype2 -I/home/andycheng/realprice/env/build/pillow/libImaging -I/home/andycheng/realprice/env/include -I/usr/include/tcl8.5 -I/usr/local/include -I/usr/include -I/usr/include/python2.7 -I/usr/include/x86_64-linux-gnu -c libImaging/RawDecode.c -o build/temp.linux-x86_64-2.7/libImaging/RawDecode.o gcc: error: unrecognized option '-Qunused-arguments' gcc: error: unrecognized option '-Qunused-arguments' …. …. gcc: error: build/temp.linux-x86_64-2.7/libImaging/XbmEncode.o: No such file […]

如何使用PIL / Pillow将图像合并到canvas中?

我对PIL不熟悉,但是我知道在ImageMagick中将一大堆图像放到一个网格中是非常容易的。 例如,我如何将16个图像放入一个4×4的网格中,我可以指定行和列之间的空隙?

pythonUbuntu错误安装枕头3.0.0

我最近失败了在我的Ubuntu 14.04上安装Pillow 3.0.0。 无论我做什么(下载并尝试“sudo python setup.py install”或“sudo -H pip install Pillow == 3.0.0 –no-cache-dir”),每当我得到错误: copying PIL/TiffImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL running egg_info writing Pillow.egg-info/PKG-INFO writing top-level names to Pillow.egg-info/top_level.txt writing dependency_links to Pillow.egg-info/dependency_links.txt warning: manifest_maker: standard file '-c' not found reading manifest file 'Pillow.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'Pillow.egg-info/SOURCES.txt' copying PIL/OleFileIO-README.md -> build/lib.linux-x86_64-2.7/PIL running […]

在JPG图像上操作时,“无法将模式P写入JPEG”

我正在尝试调整一些图像,其中大部分是JPG。 但在一些图片中,我收到错误: Traceback (most recent call last): File "image_operation_new.py", line 168, in modifyImage tempImage.save(finalName); File "/Users/kshitiz/.virtualenvs/django_project/lib/python2.7/site- packages/PIL/Image.py", line 1465, in save save_handler(self, fp, filename) File "/Users/kshitiz/.virtualenvs/django_project/lib/python2.7/site- packages/PIL/JpegImagePlugin.py", line 455, in _save raise IOError("cannot write mode %s as JPEG" % im.mode) IOError: cannot write mode P as JPEG 我不改变图像types,我正在使用枕头库。 我的操作系统是Mac OS X.我该如何解决这个问题?

在ubuntu 14.04上安装Pillow时出错

我正在尝试使用以下命令在Ubuntu 14.04上安装Pillow: pip install Pillow 但安装失败,出现此错误: ValueError: –enable-jpeg requested but jpeg not found, aborting.

在Linux中安装Pillow(Python模块)时失败

我正在尝试使用pip来安装Pillow(Python模块),但是会引发这个错误: ValueError: jpeg is required unless explicitly disabled using –disable-jpeg, aborting 所以错误说,我试过: pip install pillow –global-option="–disable-jpeg" 但是它失败了: error: option –disable-jpeg not recognized 任何提示如何处理?

Python图像库失败,消息“解码器JPEG不可用” – PIL

PIL在我的系统中支持JPEG。 每当我做一个上传,我的代码失败: File "PIL/Image.py", line 375, in _getdecoder raise IOError("decoder %s not available" % decoder_name) IOError: decoder jpeg not available 我该如何解决这个问题?