我加入项目,所以我想成立environnment,所以我所做的是:蟒蛇/ Django的 - “不能用的ImageField因为枕头未安装”
pip install -r requirements.txt
这完全安装的所有要求包括django 1.7.0,Pillow 2.4.0和其他一些。
然后我想建立数据库:
python manage.py migrate
与繁荣,错误,我得到如下:
CommandError: System check identified some issues:
ERRORS:
stu.chan.icon: (fields.E210) Cannot use ImageField because Pillow is not installed.
HINT: Get Pillow at https://pypi.python.org/pypi/Pillow or run command "pip install pillow".
stu.chan.image: (fields.E210) Cannot use ImageField because Pillow is not installed.
HINT: Get Pillow at https://pypi.python.org/pypi/Pillow or run command "pip install pillow".
stu.Piec.icon: (fields.E210) Cannot use ImageField because Pillow is not installed.
HINT: Get Pillow at https://pypi.python.org/pypi/Pillow or run command "pip install pillow".
...就像我没有安装枕头。 所以我检查了安装的软件包(使用this技术),并安装了Pillow 2.4.0
。
然后,我还试图强迫重新安装:pip install --upgrade --force-reinstall Pillow==2.4.0
但是,没有运行migrate
时候做,我得到了同样的错误。
我在Mac OS X 10.6.7包裹在virtualenv 1.11.6
与PIP使用python 3.4.0
和django 1.7.0
降级到pip 1.2.1
(因为一些知名尚未未完全解决的,也不是理解的点子与和issue SSL)。
以上所有代码都在virtualenv(bin/activate
done)之内。
你对这个问题的原因以及如何解决它有什么想法吗?
- - - - - - 编辑 - - - - - -
当我运行上面的力重新安装命令,(这么多的代码被outpouted我不能粘贴均可)虽然与 “成功安装枕头” 结束,有一个在代码中的一些警告:
building 'PIL._imaging' extension
(blabla code)
_imaging.c:975:13: warning: array index of '1' indexes past the end of an array (that contains 1 elements) [-Warray-bounds]
value = PyTuple_GET_ITEM(xy, 1);
^~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/python3.4m/tupleobject.h:58:34: note: instantiated from:
#define PyTuple_GET_ITEM(op, i) (((PyTupleObject *)(op))->ob_item[i])
^
/usr/local/include/python3.4m/tupleobject.h:27:5: note: array 'ob_item' declared here
PyObject *ob_item[1];
^
1 warning generated.
(blabla code)
libImaging/Unpack.c:867:1: warning: unused function 'copy3' [-Wunused-function]
copy3(UINT8* out, const UINT8* in, int pixels)
^
1 warning generated.
安装枕头时出现任何错误..? – 2014-09-04 11:47:04
我更新了问题。请在安装过程中查看警告。 – lapin 2014-09-04 13:20:21
使用'sudo'没有警告? – 2014-09-04 13:28:48