我在python中有一些代码用于打开.pptx
- 使用LibreOffice的文件:
from pptx import Presentation
prs = Presentation('tes.pptx')
如果我在Raspbian上运行此代码,我收到此错误消息:
File "bukappt.pt", line 1, in <module>
from pptx import Presentation
File "/usr/local/lib/python2.7/dist-packages/pptx/_init_.py", line 15, in <module>
from pptx.api import Presentation # noqa
File "/user/local/lib/python2.7/dist-packages/pptx/api.py", line 14, in <module>
from ppx.package import Package
File "/usr/local/lib/python2.7/dist-packages/pptx/parts/image.py", line 13, in <module>
import Image as PIL_Image
ImportError: No modulenamed Image
如何解决这个问题?