I uninstalled the PIL and installed the Pillow and the problem solved.PIL worked fine for me with the earlier versions of Django but not with Django 1.6python
apache上跑Django项目中使用了PIL会报utf8的不能解析的错误apache
可是跟踪错误后发现django
其中引入_imaging的时候报错了。而后去外网上搜原来Django 1.6不能使用PIL,须要卸载PIL,而后安装Pillow就不会报错了。blog
快速方法:pip uninstall PILip
pip install Pillowit
瞬间碉堡了,原来是django版本问题啊,我勒个去,我觉得PIL只要安装对应的python版本就能够了,没想到还要匹配Django版本,靠!pip
折腾了我一天 - -!!!!!!!!!!!!!!!!!!!!!!!!!!!io