python pillow无法安装_Python/Pillow无法安装在MacosxMavericks上

最近我把我的系统升级到MacOSX 10.9.4。我的整个开发环境现在一团糟。我正在尝试重新安装或恢复模块、库,甚至一些应用程序。在

我使用的是Django1.6,我的一个模型中有ImageField,这当然需要安装PIL或枕头。但我无法安装Pillow,原因是以下警告:/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/abstract.h:434:25: note: expanded from macro 'PyObject_Length'

#define PyObject_Length PyObject_Size

^

_imaging.c:391:28: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]

int temp = PyInt_AsLong(op);

~~~~ ^~~~~~~~~~~~~~~~

_imaging.c:397:28: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]

int temp = PyInt_AsLong(op);

~~~~ ^~~~~~~~~~~~~~~~

_imaging.c:407:28: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]

int temp = PyInt_AsLong(op);

~~~~ ^~~~~~~~~~~~~~~~

_imaging.c:413:28: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]

int temp = PyInt_AsLong(op);

~~~~ ^~~~~~~~~~~~~~~~

_imaging.c:520:17: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]

r = PyInt_AsLong(color);

~ ^~~~~~~~~~~~~~~~~~~

_imaging.c:533:25: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]

r = PyInt_AS_LONG(color);

~ ^~~~~~~~~~~~~~~~~~~~

/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/intobject.h:52:51: note: expanded from macro 'PyInt_AS_LONG'

#define PyInt_AS_LONG(op) (((PyIntObject *)(op))->ob_ival)

~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~

_imaging.c:561:13: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]

r = PyInt_AsLong(color);

~ ^~~~~~~~~~~~~~~~~~~

_imaging.c:575:17: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]

r = PyInt_AsLong(color);

~ ^~~~~~~~~~~~~~~~~~~

_imaging.c:969:14: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]

*x = PyInt_AS_LONG(value);

~ ^~~~~~~~~~~~~~~~~~~~

/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/intobject.h:52:51: note: expanded from macro 'PyInt_AS_LONG'

#define PyInt_AS_LONG(op) (((PyIntObject *)(op))->ob_ival)

~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~

_imaging.c:977:14: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]

*y = PyInt_AS_LONG(value);

~ ^~~~~~~~~~~~~~~~~~~~

/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/intobject.h:52:51: note: expanded from macro 'PyInt_AS_LONG'

#define PyInt_AS_LONG(op) (((PyIntObject *)(op))->ob_ival)

~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~

_imaging.c:3224:15: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]

y = i / im->xsize;

~ ~~^~~~~~~~~~~

我四处寻找,找到了几个解决办法,但对我没用。现在,当我试着做brew install pillow时,它说pillow2.5.1 already install, it's just not linked。请注意,我最近使用了这个解决方案:

https://stackoverflow.com/a/22651557/878170

我怎样才能解决这个问题?在

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值