powerpoint - Opening Presentation with python pptx -


i have got code in python open .pptx-files libreoffice:

from pptx import presentation  prs = presentation('tes.pptx') 

if run code on raspbian, error message:

file "bukappt.pt", line 1, in <module>  pptx import presentation file "/usr/local/lib/python2.7/dist-packages/pptx/_init_.py", line 15, in <module>  pptx.api import presentation # noqa file "/user/local/lib/python2.7/dist-packages/pptx/api.py", line 14, in <module>  ppx.package import package file "/usr/local/lib/python2.7/dist-packages/pptx/parts/image.py", line 13, in <module>   import image pil_image importerror: no modulenamed image 

how can fixed?

this caused not having pillow imaging library installed. work you'll need install pillow. https://pypi.python.org/pypi/pillow/2.9.0


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -