Python 为什么可以';我不能在mac上安装枕头吗?它给出了一些错误
下面是安装枕头时出现的错误。我使用的是OSX小牛。 我尝试通过pip安装来安装枕头Python 为什么可以';我不能在mac上安装枕头吗?它给出了一些错误,python,django,macos,pillow,webp,Python,Django,Macos,Pillow,Webp,下面是安装枕头时出现的错误。我使用的是OSX小牛。 我尝试通过pip安装来安装枕头 _imaging.c:391:28: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] int temp = PyInt_AsLong(op); ~~~~ ^~~~~~~~~~~~~~~~ _imaging.
_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.
航站楼后来被吊死了。问题是我可以尝试用其他方式安装它,但我想知道为什么它不工作
更新阻碍我安装的是安装webp。。它总是挂在那里 我明白了。。我在这里实际做的是安装枕头
sudo ARCHFLAGS=-Wno error=未使用的命令行参数在将来的pip安装中出现硬错误
我意识到我在webp和little cms上有问题,所以我通过下载软件包手动安装了它们。这些似乎都可以安全地忽略警告。输出中有错误吗?很难从您提供的内容中分辨出来–如果成功,请尝试使用
python setup.py build\u ext
构建枕头,然后使用python setup.py build
;然后回来发布任何与pip运行不一致的结果,因为他们可能会告诉你。@RobAgar它只是挂在pip之后installing@fish2000我试着从这里安装必备软件,但在安装webp和littlecms时遇到了麻烦。它只是挂着。。我试着下载它并执行python setup.py build_ext,但仍然出现了与上面相同的错误..你好,Leonid。我使用了您的hack,看起来它已经成功安装,但我无法将其导入python shell,django runserver也不承认它的存在。你知道会发生什么吗?