问题描述
这是安装枕头时出现的错误.我正在使用OS X Mavericks.我尝试通过pip安装来安装Pillow.
here is the error from installing Pillow. I'm using OS X Mavericks.I tried installing Pillow through pip install..
_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:3102:15: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
y = i / im->xsize;
~ ~~^~~~~~~~~~~
12 warnings generated.
终端随后挂起.我可以尝试以其他方式安装它,但我想知道为什么它不起作用
The terminal hanged afterwards. The thing is I could try installing it in other ways but I wanna know why it isnt working
更新困扰我安装的是安装webp时.它始终挂在其中.
UPDATE The thing that has been choking my installation is when I install webp.. It always hangs in there..
推荐答案
我明白了.我在这里实际所做的是通过
I got it.. What I actually did here is installed Pillow through
sudo ARCHFLAGS = -Wno-error = unused-command-line-argument-hard-error-in-future pip install pillow
我意识到我在使用webp和little-cms时遇到了问题,所以我通过下载软件包手动安装了它们.
I realized I had problems with webp and little-cms so I manually installed them through downloading packages..
这篇关于为什么我不能在Mac上安装枕头?它给出了一些错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!