ppt.py:
from pptx import Presentation
newPPT = Presentation()
newPPT.save("MyPPT.pptx")
转换为exe:cmd == pyinstaller --onefile ppt.py
准备就绪后,错误为:
exception pptx.exc.PackageNotFoundError Raised when a package cannot be found at the specified path.
在pptx包的doc中
有没有办法让它成为可能
谢谢
我遇到了同样的问题,并最终根据一个类似的问题找到了解决方法:https://github.com/python-openxml/python-docx/issues/289
解决方案是编辑等级库文件。 要生成等级库文件(如果尚未生成等级库文件),请运行:
打开并编辑sepc文件:
最后使用以下命令生成exe:
(在运行python 3.6.4的windows 10计算机上测试)
相关问题 更多 >
编程相关推荐