我尝试导入pptx (from pptx import Presentation
),得到消息"No module named pptx“。我已经安装了pptx (pip install python-pptx
)。运行pip show python-pptx
,我得到:Name: python-pptx Version: 0.6.18 Summary: Generate and manipulate Open XML PowerPoint (.pptx) files Home-page: http://github.com/scanny/python-pptx Author: Steve Canny Author-email: python-pptx@googlegroups.com License: The MIT License (MIT) Location: c:\users\sheshe~1\appdata\local\r-mini~1\lib\site-packages Requires: Pillow, lxml, XlsxWriter Required-by:
你能帮我一下吗?我还应该做些什么来导入pptx?
发布于 2020-01-20 16:52:27
看看这个,
使用pip install,您将为Python2安装它,而不是为Python3安装。要确保为Python3安装它,请从解释器调用pip,如下所示:
python3 -m pip install <package>
希望这对你有帮助。
https://stackoverflow.com/questions/59819601
复制相似问题