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