最近我把我的系统升级到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
我怎样才能解决这个问题?在
目前没有回答
相关问题 更多 >
编程相关推荐