I have Pillow working on my OS X Mavericks machine. But when I try to install it in a virtualenv, I can't seem to get JPEG support working.
我有枕头在我的OS X Mavericks机器上工作。但是当我尝试在virtualenv中安装它时,我似乎无法获得JPEG支持。
Here's the summary output of pip install Pillow
in the virtualenv:
以下是virtualenv中pip install Pillow的摘要输出:
--------------------------------------------------------------------
PIL SETUP SUMMARY
--------------------------------------------------------------------
version Pillow 2.5.3
platform darwin 2.7.5 (default, Mar 9 2014, 22:15:05)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)]
--------------------------------------------------------------------
--- TKINTER support available
*** JPEG support not available
*** OPENJPEG (JPEG2000) support not available
--- ZLIB (PNG/ZIP) support available
*** LIBTIFF support not available
*** FREETYPE2 support not available
*** LITTLECMS2 support not available
*** WEBP support not available
*** WEBPMUX support not available
--------------------------------------------------------------------
It seems I could try to edit setup.py to point to the relevant libs, but I'm new to virtualenv, and don't know where setup.py is.
我似乎可以尝试编辑setup.py来指向相关的库,但我是virtualenv的新手,并且不知道setup.py在哪里。
EDIT: Well, I solved it by linking from the virtualenv to the working Pillow library.
编辑:嗯,我通过从virtualenv链接到工作Pillow库解决了它。
2 个解决方案
#1
0
You should install libjpeg
first, as the doc says:
你应该首先安装libjpeg,正如文档所说:
http://pillow.readthedocs.org/en/latest/installation.html#external-libraries
http://pillow.readthedocs.org/en/latest/installation.html#external-libraries
libjpeg provides JPEG functionality.
libjpeg提供JPEG功能。
Install libjpeg
using homebrew: brew install libjpeg
使用homebrew安装libjpeg:brew install libjpeg
#2
0
So, my solution was to link to the working install of Pillow from the virtualenv.
所以,我的解决方案是从virtualenv链接到Pillow的工作安装。
#1
0
You should install libjpeg
first, as the doc says:
你应该首先安装libjpeg,正如文档所说:
http://pillow.readthedocs.org/en/latest/installation.html#external-libraries
http://pillow.readthedocs.org/en/latest/installation.html#external-libraries
libjpeg provides JPEG functionality.
libjpeg提供JPEG功能。
Install libjpeg
using homebrew: brew install libjpeg
使用homebrew安装libjpeg:brew install libjpeg
#2
0
So, my solution was to link to the working install of Pillow from the virtualenv.
所以,我的解决方案是从virtualenv链接到Pillow的工作安装。