当我尝试访问产品或catelogue
时出现此错误我已经安装了libjpeg-dev,然后是pil。
我在本地运行django_oscar沙箱。我该怎么办?
还请指定我应该添加哪些其他信息?
IOError at /catalogue/
decoder jpeg not available
Request Method: GET
Request URL: http://127.0.0.1:8888/catalogue/
Django Version: 1.4.6
Exception Type: IOError
Exception Value:
decoder jpeg not available
Exception Location: /home/vagrant/oscar/local/lib/python2.7/site-packages/PIL/Image.py in _getdecoder, line 385
Python Executable: /home/vagrant/oscar/bin/python
Python Version: 2.7.3
Python Path:
['/vagrant/projects/ecommerce/clone/django-oscar/sites/sandbox',
'/home/vagrant/oscar/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg',
'/home/vagrant/oscar/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg',
'/vagrant/projects/ecommerce/clone/django-oscar',
'/home/vagrant/oscar/local/lib/python2.7/site-packages/django_treebeard-2.0b1-py2.7.egg',
'/home/vagrant/oscar/lib/python2.7',
'/home/vagrant/oscar/lib/python2.7/plat-linux2',
'/home/vagrant/oscar/lib/python2.7/lib-tk',
'/home/vagrant/oscar/lib/python2.7/lib-old',
'/home/vagrant/oscar/lib/python2.7/lib-dynload',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk',
'/home/vagrant/oscar/local/lib/python2.7/site-packages',
'/home/vagrant/oscar/local/lib/python2.7/site-packages/PIL']
答案 0 :(得分:1)
如果你正在使用ubuntu,那么奥斯卡作者就这篇文章发表了一篇很可爱的博文:)
http://codeinthehole.com/writing/how-to-install-pil-on-64-bit-ubuntu-1204/