[英]Can't get PIL to work on Mac OS X
I wanted to recompile PIL
after having installed libjpeg
because it threw the decoder jpeg not available
whenever I tried importing JPEG images. 我想在安装
libjpeg
之后重新编译PIL
,因为每当我尝试导入JPEG图像时,它都会使decoder jpeg not available
。
So, I've downloaded libjpeg
, compiled it and installed it. 所以,我已经下载了
libjpeg
,编译并安装它。 Then I removed the ./build
folder from PIL's source cache, and recompiled it (using sudo python setup.py install
). 然后我从PIL的源缓存中删除了
./build
文件夹,并重新编译它(使用sudo python setup.py install
)。
Now the selftest.py
thing is failing with *** The _imaging C module is not installed
. 现在
selftest.py
事情与失败*** The _imaging C module is not installed
。 I have no idea what the issue is. 我不知道问题是什么。
_imaging
module is importable _imaging
模块是可导入的 -v
) -v
) Does anyone know what could be causing this? 有谁知道是什么原因引起的? I'm on OS X Lion.
我在OS X Lion上。
What would I try: 我会尝试什么:
我解决了这个问题
pip install Pillow
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.