1
Livid MOD PRO PIL 依赖的包很多,不建议自己编译完整的依赖链。
通过 MacPorts 安装吧,会简单很多。 |
3
Livid MOD PRO /opt/local/bin/python2.6
|
4
evenkevin 2011 年 4 月 30 日
当时安装也遇到点问题,我当时总结了下,可以参考
http://1q80prj.appspot.com/article/41 |
5
alai 2011 年 5 月 1 日
仍然沒成功⋯⋯
|
6
killall OP 嗯,放弃了MAC自带 PYTHON 改用MACports安装可以使用了,但是现在又遇到了诡异的问题。
http://www.zhimaq.com/questions/1467/macmacports |
7
kingwkb 2011 年 5 月 2 日
昨天安装试了下,没遇到这个问题
http://yanghao.org/blog/archives/108 |
8
kingwkb 2011 年 5 月 2 日
你的安装好像有问题吧
PIL-1.1.7-py2.6-macosx-10.3-fat.egg 和我的不一样 /Library/Python/2.6/site-packages/PIL-1.1.7-py2.6-macosx-10.6-universal.egg |
9
chengdujin 2011 年 5 月 2 日
其实最主要的问题是pil中_imaging.so的位数是x86_64 而你要去找个universal的编译就行了
|
10
chengdujin 2011 年 5 月 2 日
刚才试了下一个肯定成功的办法:
1. sudo port py26-pil +universal 2. 两种办法:要不将/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/PIL的内容直接拷到/Library/Python/2.6/site-packages中 要不就将前者映射到(ln)后者去 |
11
killall OP @chengdujin 谢谢 如果依赖 MacPorts 已经安装成功了
|
12
darcy 2011 年 5 月 2 日 via iPhone
这个太难搞
SSL也难搞 |
13
linsk 2011 年 11 月 1 日
好吧,我也撞上了。
在terminal里找到了.. >>> import PIL >>> PIL <module 'PIL' from '/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PIL/__init__.pyc'> python2.5 -c "from PIL import Image" 也没出现任何错误提醒。 但在GAE Luancher调试报错, raise NotImplementedError("Unable to find the Python PIL library. Please " NotImplementedError: Unable to find the Python PIL library. Please view the SDK documentation for details about installing PIL on your system. |
14
skingtree 2016 年 5 月 7 日
我是 python 新手,安装 pillow 遇上了问题搜到了这里,后来是到官网的指引下完成的。其实也就是两行命令
https://pillow.readthedocs.io/en/latest/installation.html > brew install libtiff libjpeg webp little-cms2 > pip install Pillow good luck~ |