'''创建PPT'''
from pptx import Presentation
pres = Presentation()
pres.slide_width(inches2(33.87/2.54))
pres.slide_height(Inches(19.05/2.54))
slide = pres.slides.add_slide(pres.slide_layouts[8])
输出:
Traceback (most recent call last):
File "/Users/can/Desktop/小项目合集/自动画ppt.py", line 19, in <module>
pres.slide_width(Inches(33.87/2.54))
TypeError: 'Emu' object is not callable
然后我尝试去安装EMU:
sudo pip install EMU
然后输出: [Errno 1] Operation not permitted: '/tmp/pip-AH14DK-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info'
小白表示很头疼.......................T.T
|