【发布时间】:2014-09-09 15:09:31
【问题描述】:
我让 Pillow 在我的 OS X Mavericks 机器上工作。但是当我尝试在 virtualenv 中安装它时,我似乎无法获得 JPEG 支持。
这是pip install Pillow 在 virtualenv 中的摘要输出:
--------------------------------------------------------------------
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
--------------------------------------------------------------------
看来我可以尝试编辑 setup.py 以指向相关库,但我是 virtualenv 的新手,不知道 setup.py 在哪里。
编辑: 好吧,我通过从 virtualenv 链接到工作 Pillow 库来解决它。
【问题讨论】:
标签: python django osx-mavericks virtualenv