Python / Pillow不会安装在MacosxMavericks上

时间:2014-07-21 04:13:56

标签: python django osx-mavericks pillow

最近我将系统升级到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 个答案:

没有答案